Back to Parent

Adding additional input -- the switch button

After completing the additional exercises, I took some time to familiarize myself with some of the inputs and sensors in the kit. I eventually picked the switch button and used it as an on/off button for the light. Below was the code for turning the light on and off using the switch button.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0