Updates for new LED parameters.

This commit is contained in:
Joshua Whitley 2022-04-03 01:46:18 -05:00 committed by Joshua Whitley
parent a941564eb0
commit ca8d9312e3
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,5 @@
#include <dt-bindings/led/led.h>
/* /*
* Copyright (c) 2022 The ZMK Contributors * Copyright (c) 2022 The ZMK Contributors
* *
@ -24,6 +26,8 @@
chain-length = <16>; /* number of LEDs */ chain-length = <16>; /* number of LEDs */
spi-one-frame = <0x70>; spi-one-frame = <0x70>;
spi-zero-frame = <0x40>; spi-zero-frame = <0x40>;
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
}; };
}; };

View file

@ -8,6 +8,7 @@
/ { / {
chosen { chosen {
zephyr,display = &oled;
zmk,kscan = &kscan0; zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform; zmk,matrix_transform = &default_transform;
}; };
@ -71,7 +72,7 @@ RC(3,5) RC(3,4) RC(3,3) RC(3,2) RC(3,1) RC(3,0) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
&pro_micro_i2c { &pro_micro_i2c {
status = "okay"; status = "okay";
ssd1306@3c { oled: ssd1306@3c {
compatible = "solomon,ssd1306fb"; compatible = "solomon,ssd1306fb";
reg = <0x3c>; reg = <0x3c>;
label = "DISPLAY"; label = "DISPLAY";