tominabox1
4 years ago
6 changed files with 19 additions and 93 deletions
@ -1,2 +1,5 @@
@@ -1,2 +1,5 @@
|
||||
config SHIELD_MY_BOARD |
||||
# Copyright (c) 2020 TJ Campie |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_MY_BOARD |
||||
def_bool $(shields_list_contains,qaz) |
||||
|
@ -1,22 +0,0 @@
@@ -1,22 +0,0 @@
|
||||
&spi1 { |
||||
compatible = "nordic,nrf-spi"; |
||||
status = "okay"; |
||||
mosi-pin = <47>; |
||||
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself. |
||||
sck-pin = <5>; |
||||
miso-pin = <7>; |
||||
|
||||
led_strip: ws2812@0 { |
||||
compatible = "worldsemi,ws2812-spi"; |
||||
label = "WS2812"; |
||||
|
||||
/* SPI */ |
||||
reg = <0>; /* ignored, but necessary for SPI bindings */ |
||||
spi-max-frequency = <4000000>; |
||||
|
||||
/* WS2812 */ |
||||
chain-length = <21>; /* number of LEDs */ |
||||
spi-one-frame = <0x70>; |
||||
spi-zero-frame = <0x40>; |
||||
}; |
||||
}; |
@ -1,26 +0,0 @@
@@ -1,26 +0,0 @@
|
||||
CONFIG_ZMK_RGB_UNDERGLOW=n |
||||
# Use the STRIP config specific to the LEDs you're using |
||||
CONFIG_WS2812_STRIP=n |
||||
# Turn on logging, and set ZMK logging to debug output |
||||
CONFIG_LOG=y |
||||
CONFIG_ZMK_LOG_LEVEL_DBG=y |
||||
|
||||
# Turn on USB CDC ACM device |
||||
CONFIG_USB=y |
||||
CONFIG_USB_DEVICE_STACK=y |
||||
CONFIG_USB_CDC_ACM=y |
||||
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024 |
||||
CONFIG_USB_CDC_ACM_DEVICE_NAME="CDC_ACM" |
||||
CONFIG_USB_CDC_ACM_DEVICE_COUNT=1 |
||||
|
||||
# Enable serial console |
||||
CONFIG_SERIAL=y |
||||
CONFIG_CONSOLE=y |
||||
CONFIG_UART_INTERRUPT_DRIVEN=y |
||||
CONFIG_UART_LINE_CTRL=y |
||||
|
||||
# Enable USB UART, and set the console device |
||||
CONFIG_UART_CONSOLE=y |
||||
CONFIG_USB_UART_CONSOLE=y |
||||
CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0" |
||||
CONFIG_USB_UART_DTR_WAIT=n |
Loading…
Reference in new issue