Wouldn't it be better to specify the pin used for the on/off switch in the music streamer demo with the PULLUP enabled
Code: Select all
pinMode(ON_OFF_SWITCH, INPUT_PULLUP);
I also moved it from GPIO04 to GPIO12 to avoid a conflict with the IR sensor demo code.