Skip to content

Commit

Permalink
enable oled on left
Browse files Browse the repository at this point in the history
  • Loading branch information
numToStr committed Sep 9, 2024
1 parent fe23431 commit ddfd40a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions boards/shields/acorn/acorn_central_left.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,27 @@
a-gpios = <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&pro_micro 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
};

&pro_micro_i2c {
oled: ssd1306@3c {
compatible = "solomon,ssd1306fb";
reg = <0x3c>;
width = <128>;
height = <32>;
segment-offset = <0>;
page-offset = <0>;
display-offset = <0>;
multiplex-ratio = <31>;
segment-remap;
com-invdir;
com-sequential;
inversion-on;
prechargep = <0x22>;
};
};

/ {
chosen {
zephyr,display = &oled;
};
};
3 changes: 3 additions & 0 deletions config/acorn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y

# Enable deep sleep
CONFIG_ZMK_SLEEP=y

# Enable the OLED Display
CONFIG_ZMK_DISPLAY=y

0 comments on commit ddfd40a

Please sign in to comment.