IoT - Modular - D-SSD1306 128x64.h

From The TinkerNet Wiki
Jump to navigation Jump to search
 1 #ifndef SSD1306_H
 2 #define SSD1306_H
 3 
 4 const int SCREEN_WIDTH = 128; // OLED display width, in pixels
 5 const int SCREEN_HEIGHT = 64; // OLED display height, in pixels
 6 
 7 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
 8 
 9 // Title Canvas - Full width of the display
10 GFXcanvas1 Tcanvas0(128, 15);
11 
12 // Static Information Canvases
13 // GFXcanvas1 Scanvas1(120, 15);
14 // GFXcanvas1 Scanvas2(120, 15);
15 GFXcanvas1 Scanvas3(120, 15);
16 
17 // Dynamic Information Canvases
18 
19 GFXcanvas1 Dcanvas6(65, 12);    // 6 characters
20 
21 // GFXcanvas1 StickDudePIC(8, 12);
22 
23 // int row_Y[] = {27, 42, 57}; // Locations of the rows in the main screen part (Blue)
24 int row_Y[] = {18, 33, 48}; // Locations of the rows in the main screen part (Blue)
25 
26 // 
27 int DottyX = 0; // Initialize the dots position OUTSIDE of the actual loop...
28 
29 #endif // SSD1306_H