Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLED Driver improvements #20331

Merged
merged 28 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
745b84c
Improve oled driver code
drashna Jan 11, 2023
a5db665
simplify
drashna Jan 29, 2023
55741e2
Add docs and defaults
drashna Mar 21, 2023
f094cfb
Remove unneeded files
drashna Mar 21, 2023
0e83c49
Fix compilation errors and formatting
drashna Mar 21, 2023
4fc45a2
Revert driver make logic and move spi/i2c to transport setting
drashna Apr 3, 2023
ab2cc9a
Revert changes to drashna kyria keymap
drashna Apr 4, 2023
2b3f385
Add display clock and vcom detect settings
drashna Apr 13, 2023
8e7e850
Improve documentation
drashna Apr 14, 2023
16e239e
Make pre-charge configurable and move vcom detect to proper location
drashna Apr 14, 2023
7531220
fix userspace changes
drashna Apr 15, 2023
9981e5d
Remove changes to drashna code
drashna Apr 30, 2023
0ef46d9
Get missed file'
drashna Apr 30, 2023
64b8bf9
Merge remote-tracking branch 'origin/develop' into oled_improvements
drashna Apr 30, 2023
a41dad3
Remove unneeded col offset
drashna May 2, 2023
98ded16
Apply suggestions from code review
drashna May 6, 2023
8762385
Remove oled_pan_section
drashna May 6, 2023
680c41b
Change function names and add to doc
drashna May 6, 2023
c8084b1
Remove array size define and use util.h's version
drashna May 6, 2023
d2e6ed9
Rename send data/cmd functions
drashna May 6, 2023
821b2f0
Fix compilation issue with spi and avr
drashna May 7, 2023
88d2ae0
Apply suggestions from code review
drashna May 7, 2023
704e806
Apply more suggestions
drashna May 7, 2023
60cde19
fix missing value
drashna May 7, 2023
5933db0
doc rewording and additions
drashna May 7, 2023
f8a49c4
fix spi start
drashna May 8, 2023
a98652b
Remove extra includes
drashna May 8, 2023
05de496
Merge remote-tracking branch 'origin/develop' into oled_improvements
drashna May 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions builddefs/common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -744,17 +744,28 @@ endif

VALID_OLED_DRIVER_TYPES := SSD1306 custom
OLED_DRIVER ?= SSD1306
VALID_OLED_TRANSPORT_TYPES := i2c spi custom
OLED_TRANSPORT ?= i2c
ifeq ($(strip $(OLED_ENABLE)), yes)
ifeq ($(filter $(OLED_DRIVER),$(VALID_OLED_DRIVER_TYPES)),)
$(call CATASTROPHIC_ERROR,Invalid OLED_DRIVER,OLED_DRIVER="$(OLED_DRIVER)" is not a valid OLED driver)
else
OPT_DEFS += -DOLED_ENABLE
COMMON_VPATH += $(DRIVER_PATH)/oled
ifeq ($(filter $(OLED_TRANSPORT),$(VALID_OLED_TRANSPORT_TYPES)),)
$(call CATASTROPHIC_ERROR,Invalid OLED_TRANSPORT,OLED_TRANSPORT="$(OLED_TRANSPORT)" is not a valid OLED transport)
else
OPT_DEFS += -DOLED_ENABLE
COMMON_VPATH += $(DRIVER_PATH)/oled
ifneq ($(strip $(OLED_DRIVER)), custom)
SRC += oled_driver.c
endif

OPT_DEFS += -DOLED_DRIVER_$(strip $(shell echo $(OLED_DRIVER) | tr '[:lower:]' '[:upper:]'))
ifeq ($(strip $(OLED_DRIVER)), SSD1306)
SRC += ssd1306_sh1106.c
QUANTUM_LIB_SRC += i2c_master.c
OPT_DEFS += -DOLED_TRANSPORT_$(strip $(shell echo $(OLED_TRANSPORT) | tr '[:lower:]' '[:upper:]'))
ifeq ($(strip $(OLED_TRANSPORT)), i2c)
QUANTUM_LIB_SRC += i2c_master.c
endif
ifeq ($(strip $(OLED_TRANSPORT)), spi)
QUANTUM_LIB_SRC += spi_master.c
endif
endif
endif
endif
Expand Down
111 changes: 79 additions & 32 deletions docs/feature_oled_driver.md

Large diffs are not rendered by default.

Loading