COCRSX / RSX

All the code for our hardware
1 stars 0 forks source link

piezoOn function #9

Open michaeldsanchez opened 5 years ago

michaeldsanchez commented 5 years ago

Tone for on.

DinoAstronomer commented 5 years ago

Code for piezo thus far, I do not know how accurate it is. I looked up piezo coding and tried to add if the power is on turn on the piezo.

int piezoPin = 8;

void setup() {

}

void loop() {

if power turn on

tone(8, 3000, 500);

delay(2000)

}