Final project repo for ECE 495
Dependencies: Adafruit_GFX_MBED Adafruit_ILI9341 BurstSPI DS1820 mbed mbed-rtos ltc2991_lib
display/Display.h@0:7ba4e0775670, 2016-11-29 (annotated)
- Committer:
- bdk9
- Date:
- Tue Nov 29 16:56:43 2016 +0000
- Revision:
- 0:7ba4e0775670
- Child:
- 5:c1c710391df2
published
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bdk9 | 0:7ba4e0775670 | 1 | |
bdk9 | 0:7ba4e0775670 | 2 | #ifndef DISPLAY_H |
bdk9 | 0:7ba4e0775670 | 3 | #define DISPLAY_H |
bdk9 | 0:7ba4e0775670 | 4 | |
bdk9 | 0:7ba4e0775670 | 5 | #include "Adafruit_ILI9341.h" |
bdk9 | 0:7ba4e0775670 | 6 | #include "mbed.h" |
bdk9 | 0:7ba4e0775670 | 7 | #include "Screen.h" |
bdk9 | 0:7ba4e0775670 | 8 | |
bdk9 | 0:7ba4e0775670 | 9 | |
bdk9 | 0:7ba4e0775670 | 10 | class Display { |
bdk9 | 0:7ba4e0775670 | 11 | |
bdk9 | 0:7ba4e0775670 | 12 | public: |
bdk9 | 0:7ba4e0775670 | 13 | Display(); |
bdk9 | 0:7ba4e0775670 | 14 | |
bdk9 | 0:7ba4e0775670 | 15 | void set_screens(Screen **screens, int num); |
bdk9 | 0:7ba4e0775670 | 16 | void next_screen(); |
bdk9 | 0:7ba4e0775670 | 17 | void update(); |
bdk9 | 0:7ba4e0775670 | 18 | |
bdk9 | 0:7ba4e0775670 | 19 | private: |
bdk9 | 0:7ba4e0775670 | 20 | |
bdk9 | 0:7ba4e0775670 | 21 | void get_current_screen(); |
bdk9 | 0:7ba4e0775670 | 22 | void get_num_screens(); |
bdk9 | 0:7ba4e0775670 | 23 | |
bdk9 | 0:7ba4e0775670 | 24 | int _needs_init; |
bdk9 | 0:7ba4e0775670 | 25 | Screen **_screens; |
bdk9 | 0:7ba4e0775670 | 26 | int _num_screens; |
bdk9 | 0:7ba4e0775670 | 27 | Screen *_cur_screen; |
bdk9 | 0:7ba4e0775670 | 28 | int _cur_screen_index; |
bdk9 | 0:7ba4e0775670 | 29 | |
bdk9 | 0:7ba4e0775670 | 30 | }; |
bdk9 | 0:7ba4e0775670 | 31 | #endif |