diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-04-11 12:44:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-04-11 12:44:47 +0200 |
commit | f7e8fcede382407ffc616f18ffaffb81235e7d26 (patch) | |
tree | 255fb09de059a887550fee0e857af094e3dd751a /Makefile | |
parent | e585d5246b7391d35a5dc4b1ce2f79a310570f5e (diff) |
Add SSD1306 OLED display driver
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |