semi integrated
Dependencies: Speaker mbed 4DGL-uLCD-SE hcsr04
Diff: main.cpp
- Revision:
- 11:68194bd43e0b
- Parent:
- 10:f29ed3675509
- Child:
- 12:730a95b81992
diff -r f29ed3675509 -r 68194bd43e0b main.cpp --- a/main.cpp Wed Dec 16 13:18:49 2020 +0000 +++ b/main.cpp Wed Dec 16 15:05:27 2020 +0000 @@ -19,15 +19,16 @@ { uLCD.text_width(1); // Normal size uLCD.text_height(1); // Normal size - uLCD.locate(10, 13); // Move cursor + uLCD.locate(10, 12); // Move cursor uLCD.color(BLUE); // Change text color - uLCD.printf("Reverse"); + uLCD.printf(" Reverse Sensor"); uLCD.rectangle(65, 117, 126, 127, 0x0000FF); while(1) { distSens.start(); averageDistance(); beeping(); - pc.printf("cm:%ld\n",dist ); + uLCD.filled_rectangle(66, 118, 125, 127, 0x000000); + pc.printf("cm:%d\n",dist ); uLCD.text_width(1); // Normal size uLCD.text_height(1); // Normal size uLCD.locate(10, 15); // Move cursor