jim hamblen
/
AnalogLoopBackTest
Analog loopback test p18 - p20 LED Bar Graph Display
Revision 1:0286d548948b, committed 2010-08-28
- Comitter:
- 4180_1
- Date:
- Sat Aug 28 02:44:40 2010 +0000
- Parent:
- 0:045a3e5d8f7d
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 045a3e5d8f7d -r 0286d548948b main.cpp --- a/main.cpp Thu Aug 26 23:58:04 2010 +0000 +++ b/main.cpp Sat Aug 28 02:44:40 2010 +0000 @@ -10,7 +10,7 @@ int main() { while (1) { for (float i=0.0; i<1.0; i+=0.1) { - aout = 1 - sin(i*2*3.14159265); + aout = (1 + sin(i*2*3.14159265))/2; LED_BarGraph(1.0, ain); wait(0.1); }