SwitchCase program for MSOE EE2905. A photoresistor is set up in a voltage divider with a 10k resistor, and the resistor voltage is read as an analog input. A switch/case statement categorizes the reading as dark, dim, medium, or bright and prints the result to the serial monitor.
Dependencies: mbed
Fork of switchCase by
File List
| main.cpp [code] |
Generated on Wed Jul 13 2022 04:22:58 by
1.7.2
