DovesLapTimer 4.0.0
GPS-based lap timing Arduino library — go-karts to race cars
Loading...
Searching...
No Matches
display_config.h
Go to the documentation of this file.
1#ifndef _DOVES_DISPLAYCONFIG_H
2#define _DOVES_DISPLAYCONFIG_H
3 #ifndef I2C_DISPLAY_ADDRESS
4 #define I2C_DISPLAY_ADDRESS 0x3C
5 #endif
6
7 #ifndef SCREEN_WIDTH
8 #define SCREEN_WIDTH 128
9 #endif
10
11 #ifndef SCREEN_HEIGHT
12 #define SCREEN_HEIGHT 64
13 #endif
14
15 #include <Adafruit_GFX.h>
16
17 #ifdef USE_1306_DISPLAY
18 #include <Adafruit_SSD1306.h>
19 #define DISPLAY_TEXT_WHITE SSD1306_WHITE
20 #define DISPLAY_TEXT_BLACK SSD1306_BLACK
21 #define OLED_RESET 2 // reccomended to use reset pin, not required
22 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
23 #else
24 #include <Adafruit_SH110X.h>
25 #define DISPLAY_TEXT_WHITE SH110X_WHITE
26 #define DISPLAY_TEXT_BLACK SH110X_BLACK
27 #define OLED_RESET -1
28 Adafruit_SH1106G display = Adafruit_SH1106G(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
29 #endif
30#endif
#define SCREEN_WIDTH
Definition display_config.h:8
Adafruit_SH1106G display
Definition display_config.h:28
#define OLED_RESET
Definition display_config.h:27
#define SCREEN_HEIGHT
Definition display_config.h:12