inventrdotio / AdventureKit2

Code for the second adventure kit
41 stars 12 forks source link

Cannot turn off light with button in Day1 DimmerSwitch sketch #12

Closed sricheson closed 1 year ago

sricheson commented 1 year ago

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

inetdavid commented 1 year ago

Checking now. Thank you!

inetdavid commented 1 year ago

Fixed and pushed. Thank you for catching this for us!