This class encapsulates all the algorithms required for the displaying strings and time dependent patterns on the lcd.
Dependents: 200943412_QuickClick
Display.h@9:1e25dcab4927, 2017-04-15 (annotated)
- Committer:
- domkay97
- Date:
- Sat Apr 15 15:38:51 2017 +0000
- Revision:
- 9:1e25dcab4927
- Parent:
- 7:635883dd8c35
- Child:
- 11:7ad2ea427784
Completed functional game, classes and functions completed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
domkay97 | 0:dd78eca4b004 | 1 | #ifndef DISPLAY_H |
domkay97 | 0:dd78eca4b004 | 2 | #define DISPLAY_H |
domkay97 | 0:dd78eca4b004 | 3 | |
domkay97 | 0:dd78eca4b004 | 4 | #include "mbed.h" |
domkay97 | 9:1e25dcab4927 | 5 | #include "N5110.h" |
domkay97 | 9:1e25dcab4927 | 6 | #include "Controller.h" |
domkay97 | 1:41a1c20a2056 | 7 | |
domkay97 | 0:dd78eca4b004 | 8 | class Display |
domkay97 | 0:dd78eca4b004 | 9 | { |
domkay97 | 0:dd78eca4b004 | 10 | |
domkay97 | 0:dd78eca4b004 | 11 | public: |
domkay97 | 0:dd78eca4b004 | 12 | Display(); |
domkay97 | 0:dd78eca4b004 | 13 | ~Display(); |
domkay97 | 0:dd78eca4b004 | 14 | void init(); |
domkay97 | 9:1e25dcab4927 | 15 | void drawCircle(Controller &pad, N5110 &lcd); |
domkay97 | 6:8840d7e48ce7 | 16 | void display_instruction(N5110 &lcd, int ran); |
domkay97 | 6:8840d7e48ce7 | 17 | void calculateWait(); |
domkay97 | 0:dd78eca4b004 | 18 | |
domkay97 | 0:dd78eca4b004 | 19 | |
domkay97 | 0:dd78eca4b004 | 20 | private: |
domkay97 | 1:41a1c20a2056 | 21 | void circle_refresh(); |
domkay97 | 1:41a1c20a2056 | 22 | void Drawarc(N5110 &lcd, int a); |
domkay97 | 0:dd78eca4b004 | 23 | int _h; |
domkay97 | 0:dd78eca4b004 | 24 | float _w; |
domkay97 | 0:dd78eca4b004 | 25 | int _a; |
domkay97 | 0:dd78eca4b004 | 26 | int _A; |
domkay97 | 1:41a1c20a2056 | 27 | int _v; |
domkay97 | 1:41a1c20a2056 | 28 | int x; |
domkay97 | 1:41a1c20a2056 | 29 | int y; |
domkay97 | 1:41a1c20a2056 | 30 | int x0; |
domkay97 | 1:41a1c20a2056 | 31 | int y0; |
domkay97 | 9:1e25dcab4927 | 32 | int radiusMod; |
domkay97 | 9:1e25dcab4927 | 33 | void Circle(Controller &pad, N5110 &lcd); |
domkay97 | 0:dd78eca4b004 | 34 | |
domkay97 | 0:dd78eca4b004 | 35 | }; |
domkay97 | 0:dd78eca4b004 | 36 | #endif |