ES101 - Lesson 10 : Board IO
From Embedded Systems Learning Academy
Revision as of 23:22, 5 September 2012 by Preet (talk | contribs) (Created page with "For this assignment, reference 2012 SJ One '''Hello World''' Sample Project and do the following: # If Switch #1 is pressed, li...")
For this assignment, reference 2012 SJ One Hello World Sample Project and do the following:
- If Switch #1 is pressed, light up LED #1, else turn LED #1 off
- If Switch #2 is pressed, display Light Sensor value on 7-Segment LED Display
- Note that maximum light sensor value is 1024, calculate the percent first, then display on LED Display
- If Switch #3 is pressed, display temperature in Fahrenheit on 7-Segment LED Display
- If Switch #4 is pressed, display Acceleration Sensor's X-Axis on 7-Segment LED Display
- Note that minimum value is -1024 and maximum value is +1024.
- You can add 1024 to this value, then calculate percentage by ((X-Axis+1024)/ 2048) * 100