State machine
Dependencies: mbed Adafruit_GFX BioroboticsMotorControl MODSERIAL BioroboticsEMGFilter
Diff: Screen.h
- Revision:
- 15:f65b4566193e
- Parent:
- 6:bfc6e68774f5
- Child:
- 17:1fe276ff17db
--- a/Screen.h Wed Oct 31 10:22:07 2018 +0000 +++ b/Screen.h Wed Oct 31 11:05:47 2018 +0000 @@ -59,4 +59,28 @@ return &oled; } + void display_up_down_arrow(bool is_up) { + int size = 40; + int x_start = oled.width() - size; + int x_end = x_start + size; + 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); + + display(); + } + + void display_left_right_arrow(bool is_right) { + int size = 40; + int x_start = oled.width() - (size * 2); + int x_end = x_start + size; + 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); + + display(); + } + }; \ No newline at end of file