SSD1306 OLED Display driver refactored (#290)
* SSD1306 OLED Display driver SPI refactored: - SPI connection support - different display sizes support * I2C address added to device descriptor * Small fix
This commit is contained in:
parent
2d933cf0e4
commit
b807eefeaf
11 changed files with 710 additions and 343 deletions
|
@ -3,7 +3,15 @@
|
|||
# expected anyone using ssd1306 driver includes it as 'ssd1306/ssd1306.h'
|
||||
INC_DIRS += $(ssd1306_ROOT)..
|
||||
|
||||
# I2C support is on by default
|
||||
SSD1306_I2C_SUPPORT ?= 1
|
||||
# SPI4 support is on by default
|
||||
SSD1306_SPI4_SUPPORT ?= 1
|
||||
|
||||
# args for passing into compile rule generation
|
||||
ssd1306_SRC_DIR = $(ssd1306_ROOT)
|
||||
ssd1306_SRC_DIR = $(ssd1306_ROOT)
|
||||
|
||||
ssd1306_CFLAGS = -DSSD1306_I2C_SUPPORT=${SSD1306_I2C_SUPPORT} -DSSD1306_SPI4_SUPPORT=${SSD1306_SPI4_SUPPORT} $(CFLAGS)
|
||||
|
||||
|
||||
$(eval $(call component_compile_rules,ssd1306))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue