The sketch with the dimmer switch allows the light to be turned on with the button, but it cannot be turned off with the button. Around line 244 in the Lessons/Chapter01_MovingIn/06_DimmingTheLights.ino sketch, something like this should happen:
analogWrite(LIGHT, OFF); // Light is on, turn it off
The sketch with the dimmer switch allows the light to be turned on with the button, but it cannot be turned off with the button. Around line 244 in the Lessons/Chapter01_MovingIn/06_DimmingTheLights.ino sketch, something like this should happen:
analogWrite(LIGHT, OFF); // Light is on, turn it off