Module 2 Notes

Arduino Reference Information

 

Notes

 

Demo Program

https://create.arduino.cc/editor/mjdargen_ravens/2bd08248-4579-4fde-81fb-2f1ad748b7e2/preview

This program shows a complex example of what you can do with the various pins on the Arduino. In this case, we use an analog input to read the ambient light value from a photocell. We use a digital input to read the state of the switch. We use digital outputs to drive the RGB LED. We also use a special type of digital output using tone() to play notes on the speaker.