forked from sadekbaroudi/zmk-ffkb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2edce9d
commit a1ef123
Showing
1 changed file
with
0 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +0,0 @@ | ||
#include <dt-bindings/led/led.h> | ||
|
||
&spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
/* Cannot be used together with i2c0. */ | ||
status = "okay"; | ||
mosi-pin = <(32*0+10)>; // P0_10 | ||
sck-pin = <(32*1+13)>; // P1_13 | ||
miso-pin = <(32*1+11)>; // P1_11 | ||
cs-gpios = <&pro_micro 10 GPIO_ACTIVE_LOW>; | ||
|
||
shift_reg: 595@0 { | ||
compatible = "zmk,gpio-595"; | ||
status = "okay"; | ||
gpio-controller; | ||
spi-max-frequency = <200000>; | ||
reg = <0>; | ||
label = "74HC595"; | ||
#gpio-cells = <2>; | ||
ngpios = <8>; | ||
}; | ||
}; | ||
|
||
&spi1 { | ||
compatible = "nordic,nrf-spim"; | ||
/* Cannot be used together with i2c0. */ | ||
status = "okay"; | ||
mosi-pin = <6>; // P0_06 | ||
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself. | ||
sck-pin = <5>; // P0_05 | ||
miso-pin = <7>; // P0_07 | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_LOW>; | ||
|
||
led_strip: ws2812@0 { | ||
compatible = "worldsemi,ws2812-spi"; | ||
label = "SK6812minie"; | ||
|
||
/* SPI */ | ||
reg = <0>; /* ignored, but necessary for SPI bindings */ | ||
spi-max-frequency = <4000000>; | ||
|
||
/* WS2812 */ | ||
chain-length = <42>; | ||
spi-one-frame = <0x70>; | ||
spi-zero-frame = <0x40>; | ||
color-mapping = <LED_COLOR_ID_GREEN | ||
LED_COLOR_ID_RED | ||
LED_COLOR_ID_BLUE>; | ||
}; | ||
}; | ||
|
||
/ { | ||
chosen { | ||
zmk,underglow = &led_strip; | ||
}; | ||
}; | ||