This class encapsulates all the algorithms required for the displaying strings and time dependent patterns on the lcd.

Dependents:   200943412_QuickClick

Committer:
domkay97
Date:
Mon Apr 10 20:10:26 2017 +0000
Revision:
1:41a1c20a2056
Parent:
0:dd78eca4b004
Child:
4:b74041216336
draw circle

Who changed what in which revision?

UserRevisionLine numberNew 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 1:41a1c20a2056 16 void random_instruction(N5110 &lcd);
domkay97 1:41a1c20a2056 17 void Circle(N5110 &lcd);
domkay97 0:dd78eca4b004 18
domkay97 0:dd78eca4b004 19
domkay97 0:dd78eca4b004 20
domkay97 0:dd78eca4b004 21 private:
domkay97 0:dd78eca4b004 22 void calculateWait();
domkay97 1:41a1c20a2056 23 void circle_refresh();
domkay97 1:41a1c20a2056 24 void Drawarc(N5110 &lcd, int a);
domkay97 0:dd78eca4b004 25 int _h;
domkay97 0:dd78eca4b004 26 float _w;
domkay97 0:dd78eca4b004 27 int _a;
domkay97 0:dd78eca4b004 28 int _A;
domkay97 1:41a1c20a2056 29 int _v;
domkay97 1:41a1c20a2056 30 int x;
domkay97 1:41a1c20a2056 31 int y;
domkay97 1:41a1c20a2056 32 int x0;
domkay97 1:41a1c20a2056 33 int y0;
domkay97 1:41a1c20a2056 34 int radiusError;
domkay97 0:dd78eca4b004 35
domkay97 0:dd78eca4b004 36 };
domkay97 0:dd78eca4b004 37 #endif