Hello everyone,
Im new and a beginner at programming.
I want to use a distance sesnor and LEDs. A buzzer should make a sound every 30 seconds but without influensing the funtion of the sensor and LED. I have tried:
int pieps=6
void setup
{pinMode(pieps, OUTPUT);}
void loop
{if (millis()%500==0) (A friend suggested that to me but what does this function/sentence mean)
tone(6, 100, 1000)
else
{
digitalWrite(pieps, LOW);
}}