From f7e8fcede382407ffc616f18ffaffb81235e7d26 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 11 Apr 2021 12:44:47 +0200 Subject: Add SSD1306 OLED display driver --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3