Skip to content

Commit

Permalink
nerf
Browse files Browse the repository at this point in the history
  • Loading branch information
ridingintraffic committed Jun 22, 2023
1 parent 2edce9d commit a1ef123
Showing 1 changed file with 0 additions and 56 deletions.
56 changes: 0 additions & 56 deletions config/boards/shields/ffkb/boards/nice_nano_v2.overlay
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;
};
};

0 comments on commit a1ef123

Please sign in to comment.