Amir Chaudhary
/
Hexmodal-firmware_v3-1_hex_w_3d_14
Implemented LED Indicator Patterns
Diff: app/SerialDisplay.cpp
- Revision:
- 19:6f88d1cabaca
- Parent:
- 18:0a4de80c02a6
--- a/app/SerialDisplay.cpp Wed Jan 23 19:23:44 2019 +0000 +++ b/app/SerialDisplay.cpp Fri Jan 25 22:58:17 2019 +0000 @@ -111,7 +111,7 @@ void SerialDisplayPrintDebugLine( char* str, uint8_t size ) { vt.SetCursorPos( 17, 27 ); - vt.printf("DEBUG: "); + vt.printf("DEBUG LINE: "); for (int i = 0; i < size; i++) { vt.printf( "%c", str[i] ); } @@ -119,6 +119,16 @@ } +void SerialDisplayPrintDebugNumber( int n, bool overwrite ) +{ + if ( overwrite == true) { + vt.SetCursorPos( 17, 27 ); + vt.printf("DEBUG NUMBER: "); + } + vt.printf( " %d", n ); + +} + void SerialDisplayPrintDebugStatus( uint16_t status ) { vt.SetCursorPos( 17, 27 );