This class encapsulates all the algorithms required for the displaying strings and time dependent patterns on the lcd.
Dependents: 200943412_QuickClick
Display.h@6:8840d7e48ce7, 2017-04-12 (annotated)
- Committer:
- domkay97
- Date:
- Wed Apr 12 22:18:00 2017 +0000
- Revision:
- 6:8840d7e48ce7
- Parent:
- 4:b74041216336
- Child:
- 7:635883dd8c35
Moved calculation methods to operator class
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 | 0:dd78eca4b004 | 5 | #include "N5110.h" |
domkay97 | 0:dd78eca4b004 | 6 | |
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 | 1:41a1c20a2056 | 15 | void drawCircle(N5110 &lcd); |
domkay97 | 6:8840d7e48ce7 | 16 | void display_instruction(N5110 &lcd, int ran); |
domkay97 | 1:41a1c20a2056 | 17 | void Circle(N5110 &lcd); |
domkay97 | 6:8840d7e48ce7 | 18 | void calculateWait(); |
domkay97 | 0:dd78eca4b004 | 19 | |
domkay97 | 0:dd78eca4b004 | 20 | |
domkay97 | 0:dd78eca4b004 | 21 | private: |
domkay97 | 1:41a1c20a2056 | 22 | void circle_refresh(); |
domkay97 | 1:41a1c20a2056 | 23 | void Drawarc(N5110 &lcd, int a); |
domkay97 | 0:dd78eca4b004 | 24 | int _h; |
domkay97 | 0:dd78eca4b004 | 25 | float _w; |
domkay97 | 0:dd78eca4b004 | 26 | int _a; |
domkay97 | 0:dd78eca4b004 | 27 | int _A; |
domkay97 | 1:41a1c20a2056 | 28 | int _v; |
domkay97 | 1:41a1c20a2056 | 29 | int x; |
domkay97 | 1:41a1c20a2056 | 30 | int y; |
domkay97 | 1:41a1c20a2056 | 31 | int x0; |
domkay97 | 1:41a1c20a2056 | 32 | int y0; |
domkay97 | 1:41a1c20a2056 | 33 | int radiusError; |
domkay97 | 0:dd78eca4b004 | 34 | |
domkay97 | 0:dd78eca4b004 | 35 | }; |
domkay97 | 0:dd78eca4b004 | 36 | #endif |