Uses the SRF02 UDS and displays distance in a variety of ways on the N5110 LCD.
Dependencies: N5110WN PowerControl SRF02 mbed
Revision 11:2b3d646e3bfb, committed 2015-05-08
- Comitter:
- JakBlackburn
- Date:
- Fri May 08 09:08:25 2015 +0000
- Parent:
- 10:a32b1216d4ed
- Commit message:
- updated docs
Changed in this revision
diff -r a32b1216d4ed -r 2b3d646e3bfb N5110.lib --- a/N5110.lib Fri May 08 08:51:12 2015 +0000 +++ b/N5110.lib Fri May 08 09:08:25 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/eencae/code/N5110/#a77c43845ccc +http://developer.mbed.org/users/JakBlackburn/code/N5110WN/#a77c43845ccc
diff -r a32b1216d4ed -r 2b3d646e3bfb main.cpp --- a/main.cpp Fri May 08 08:51:12 2015 +0000 +++ b/main.cpp Fri May 08 09:08:25 2015 +0000 @@ -458,8 +458,7 @@ for(int fill=47; fill>(48 - array[i]); fill--){ lcd.setPixel(i,fill);// then filling the whole line from the plot to the bottom of the screen } - } - + } for (int i=83; i>-1; i--) { /// loops through the array PrevArray[i]= array[i]; array[i]=PrevArray[i+1];
diff -r a32b1216d4ed -r 2b3d646e3bfb main.h --- a/main.h Fri May 08 08:51:12 2015 +0000 +++ b/main.h Fri May 08 09:08:25 2015 +0000 @@ -99,7 +99,7 @@ float unitX=1; /*!< Float that stores the unit multiple if 1 unit is cm, 0.01 = m, 10 = mm */ const char *units ="cm"; /*!< string of characters that stores the unit */ int visual =0;/*!< integer that stores the visual display mode */ -int D=0; /*!< integer that helps store data in an array */ + // ---- Flags ---- int timerFlag=0; /*!< flag used to trigger the timer ISR */ int timer2Flag=0; /*!< flag used to trigger the 2nd timer ISR */