void setup() {
pinMode(19, INPUT_PULLUP);
pinMode(35, INPUT_PULLUP);
pinMode(32, INPUT_PULLUP);
pinMode(33, INPUT_PULLUP);
pinMode(25, INPUT_PULLUP);
pinMode(26, INPUT_PULLUP);
pinMode(27, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
pinMode(2, OUTPUT);
}
void loop() {
if (digitalRead(19)==LOW){
ledcSetup(0,264, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
if (digitalRead(35)==LOW){
ledcSetup(0,297, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
if (digitalRead(32)==LOW){
ledcSetup(0,330, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
if (digitalRead(33)==LOW){
ledcSetup(0,352, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
if (digitalRead(25)==LOW){
ledcSetup(0,396, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
if (digitalRead(26)==LOW){
ledcSetup(0,440, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
if (digitalRead(27)==LOW){
ledcSetup(0,495, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
if (digitalRead(14)==LOW){
ledcSetup(0,528, 8);
ledcAttachPin(2,0);
ledcWrite(0, 25);
}
}