State machine
Dependencies: mbed Adafruit_GFX BioroboticsMotorControl MODSERIAL BioroboticsEMGFilter
Diff: Screen.h
- Revision:
- 24:e1092f95c82b
- Parent:
- 17:1fe276ff17db
- Child:
- 25:cc81f2120eda
diff -r fb681b074a92 -r e1092f95c82b Screen.h --- a/Screen.h Thu Nov 01 08:20:36 2018 +0000 +++ b/Screen.h Thu Nov 01 08:40:10 2018 +0000 @@ -67,7 +67,7 @@ int y_start = oled.height() - size; int y_end = y_start + size; oled.fillRect(x_start, y_start, size, size, BLACK); - oled.fillTriangle(x_start, y_start, x_end, y_start, x_start + size/2, y_end, WHITE); + oled.fillTriangle(x_start, y_start, x_start + size/2, y_end, x_end, y_start, WHITE); display(); } @@ -79,7 +79,7 @@ int y_start = oled.height() - size; int y_end = y_start + size; oled.fillRect(x_start, y_start, size, size, BLACK); - oled.fillTriangle(x_start, y_start, x_end, y_start, x_start + size/2, y_end, WHITE); + oled.fillTriangle(x_start, y_start, x_start + size/2, y_end, x_end, y_start, WHITE); display(); }