const int buttonPin1 = 2; // White noise
const int buttonPin2 = 3; // Pink noise
const int buttonPin3 = 4; // Brown noise
int buttonState1 = 0;
int buttonState2 = 0;
int buttonState3 = 0;
void setup() {
Serial.begin(9600);
pinMode(buttonPin1, INPUT_PULLUP);
pinMode(buttonPin2, INPUT_PULLUP);
pinMode(buttonPin3, INPUT_PULLUP);
}
void loop() {
buttonState1 = digitalRead(buttonPin1);
buttonState2 = digitalRead(buttonPin2);
buttonState3 = digitalRead(buttonPin3);
if (buttonState1 == LOW) {
Serial.println("WHITE");
}
if (buttonState2 == LOW) {
Serial.println("PINK");
}
if (buttonState3 == LOW) {
Serial.println("BROWN");
delay(100); // Debounce delay
}
}