const int button1 = 2; // Pin 2 for White Noise
const int button2 = 3; // Pin 3 for Pink Noise
const int button3 = 4; // Pin 4 for Brown Noise
void setup() {
Serial.begin(9600); // Start serial communication at 9600 baud
pinMode(button1, INPUT_PULLUP);
pinMode(button2, INPUT_PULLUP);
pinMode(button3, INPUT_PULLUP);
}
void loop() {
if (digitalRead(button1) == LOW) {
Serial.println("WHITE");
delay(300);
}
if (digitalRead(button2) == LOW) {
Serial.println("PINK");
delay(300);
}
if (digitalRead(button3) == LOW) {
Serial.println("BROWN");
delay(300);
}
}