Is there an easy way to do this with B4R?
the 38000 runs continuously. It does not care about the other delays, or the rest of the program.
Thank you, Lee
the 38000 runs continuously. It does not care about the other delays, or the rest of the program.
Thank you, Lee
B4X:
int led = 1;
void setup ()
{
pinMode(led, OUTPUT);
tone (0, 38000);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}