summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-04-11 12:44:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-04-11 12:44:47 +0200
commitf7e8fcede382407ffc616f18ffaffb81235e7d26 (patch)
tree255fb09de059a887550fee0e857af094e3dd751a /Makefile
parente585d5246b7391d35a5dc4b1ce2f79a310570f5e (diff)
Add SSD1306 OLED display driver
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3a00779..abd4dca 100644
--- a/Makefile
+++ b/Makefile
@@ -108,6 +108,10 @@ ifneq ($(findstring sharp96,${drivers}), )
CONFIG_driver_sharp96 = y
endif
+ifneq ($(findstring ssd1306,${drivers}), )
+ CONFIG_driver_ssd1306 = y
+endif
+
ifneq ($(findstring tsl2591,${drivers}), )
CONFIG_driver_tsl2591 = y
endif
@@ -251,6 +255,11 @@ ifdef CONFIG_driver_sharp96
COMMON_FLAGS += -DSHARP96_CS_PIN=GPIO::${sharp96_cs_pin}
endif
+ifdef CONFIG_driver_ssd1306
+ CXX_TARGETS += src/driver/ssd1306.cc
+ COMMON_FLAGS += -DDRIVER_SSD1306 -DSSD1306_WIDTH=${CONFIG_driver_ssd1306_width} -DSSD1306_HEIGHT=${CONFIG_driver_ssd1306_height}
+endif
+
ifdef CONFIG_driver_resistive_load
CXX_TARGETS += src/driver/resistive_load.cc
resistor1_pin ?= p3_0