-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leeloo v2 and Leeloo v1 updates to support Zephyr 3.2
- Loading branch information
1 parent
0239f18
commit d03848f
Showing
16 changed files
with
541 additions
and
26 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
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,8 +1,28 @@ | ||
# Copyright (c) 2022 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
config SHIELD_LEELOO | ||
bool | ||
|
||
config SHIELD_LEELOO_LEFT | ||
<<<<<<< HEAD | ||
def_bool $(shields_list_contains,leeloo_left) | ||
|
||
config SHIELD_LEELOO_RIGHT | ||
def_bool $(shields_list_contains,leeloo_right) | ||
======= | ||
def_bool $(shields_list_contains,leeloo_left) | ||
select SHIELD_LEELOO | ||
|
||
config SHIELD_LEELOO_RIGHT | ||
def_bool $(shields_list_contains,leeloo_right) | ||
select SHIELD_LEELOO | ||
|
||
config SHIELD_LEELOO_REV2_LEFT | ||
def_bool $(shields_list_contains,leeloo_rev2_left) | ||
select SHIELD_LEELOO | ||
|
||
config SHIELD_LEELOO_REV2_RIGHT | ||
def_bool $(shields_list_contains,leeloo_rev2_right) | ||
select SHIELD_LEELOO | ||
>>>>>>> 69308eaf (Leeloo v2 and Leeloo v1 updates to support Zephyr 3.2) |
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include <dt-bindings/led/led.h> | ||
|
||
&pinctrl { | ||
spi3_default: spi3_default { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>; | ||
}; | ||
}; | ||
|
||
spi3_sleep: spi3_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&spi3 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
|
||
pinctrl-0 = <&spi3_default>; | ||
pinctrl-1 = <&spi3_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
|
||
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 = <37>; /* arbitrary; change at will */ | ||
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; | ||
}; | ||
}; |
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,9 +1,16 @@ | ||
# Copyright (c) 2022 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Uncomment the following line to enable the OLED Display | ||
# Uncomment the following line to enable the OLED Display or nice!view Display | ||
# CONFIG_ZMK_DISPLAY=y | ||
|
||
# Uncomment to turn off WPM Status. | ||
# CONFIG_ZMK_WIDGET_WPM_STATUS=n | ||
|
||
# Uncomment to invert colour, if using nice!view Displays | ||
# CONFIG_LVGL_USE_THEME_MONO=y | ||
|
||
|
||
# Uncomment these two lines to add support for encoders | ||
# CONFIG_EC11=y | ||
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y | ||
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y |
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
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
Oops, something went wrong.