aboutsummaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oled/oled_driver.h')
-rw-r--r--drivers/oled/oled_driver.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h
index abbdde57e..03dda2e64 100644
--- a/drivers/oled/oled_driver.h
+++ b/drivers/oled/oled_driver.h
@@ -19,6 +19,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19#include <stdint.h> 19#include <stdint.h>
20#include <stdbool.h> 20#include <stdbool.h>
21 21
22// an enumeration of the chips this driver supports
23#define OLED_IC_SSD1306 0
24#define OLED_IC_SH1106 1
22 25
23#if defined(OLED_DISPLAY_CUSTOM) 26#if defined(OLED_DISPLAY_CUSTOM)
24 // Expected user to implement the necessary defines 27 // Expected user to implement the necessary defines
@@ -100,7 +103,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
100 // #define OLED_TARGET_MAP { 48, 32, 16, 0, 56, 40, 24, 8 } 103 // #define OLED_TARGET_MAP { 48, 32, 16, 0, 56, 40, 24, 8 }
101#endif // defined(OLED_DISPLAY_CUSTOM) 104#endif // defined(OLED_DISPLAY_CUSTOM)
102 105
103// Address to use for tthe i2d oled communication 106#if !defined(OLED_IC)
107 #define OLED_IC OLED_IC_SSD1306
108#endif
109
110// the column address corresponding to the first column in the display hardware
111#if !defined(OLED_COLUMN_OFFSET)
112 #define OLED_COLUMN_OFFSET 0
113#endif
114
115// Address to use for the i2c oled communication
104#if !defined(OLED_DISPLAY_ADDRESS) 116#if !defined(OLED_DISPLAY_ADDRESS)
105 #define OLED_DISPLAY_ADDRESS 0x3C 117 #define OLED_DISPLAY_ADDRESS 0x3C
106#endif 118#endif