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 Sheila Ross

Embed: (wiki syntax)

« Back to documentation index

File Index

File List

Here is a list of all documented files with brief descriptions:
main.cpp [code]