
Programm zur Darstellung der Lage eines Objektes im Raum mit Hilfe eines Beschleunigungssensores, 4 LED's und einem LCD-Display.
Diff: LCD.cpp
- Revision:
- 2:cf8b98404b66
- Parent:
- 0:2a6b63a19ae5
- Child:
- 3:740ab0a19e1d
--- a/LCD.cpp Mon May 23 07:52:12 2016 +0000 +++ b/LCD.cpp Mon May 23 10:07:14 2016 +0000 @@ -30,4 +30,15 @@ /* aktuelle Winkel darstellen in ° */ olcd.locate(0,1); olcd.printf("X: %i\337 Y: %i\337",wWinkelX,wWinkelY); // \337 entspricht °-Zeichen +} + +void vLCDSetDebug(word wX, word wY, word wZ){ + /* Überschrift in erster Zeile darstellen */ + olcd.locate(0,0); + olcd.printf("X:%xY:%x",wX,wY); + + /* aktuelle Winkel darstellen in ° */ + olcd.locate(0,1); + //olcd.printf("X:%iY:%iZ:%i",wX,wY,wZ); // \337 entspricht °-Zeichen + olcd.printf("Z:%x",wZ); // \337 entspricht °-Zeichen } \ No newline at end of file