Untitled
unknown
csharp
3 years ago
266 B
4
Indexable
if (beforeCm != 0) { if (beforeCm > distancia && beforeCm - distancia > 10) { tone(buzzer,440); } else if(beforeCm < distancia && distancia - beforeCm > 10) { tone(buzzer,220); } } beforeCm = distancia; delay(1000); noTone(buzzer);
Editor is loading...