Uses the SRF02 UDS and displays distance in a variety of ways on the N5110 LCD.
Dependencies: N5110WN PowerControl SRF02 mbed
Diff: main.cpp
- Revision:
- 11:2b3d646e3bfb
- Parent:
- 10:a32b1216d4ed
--- 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];