-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzhaw_lumamatrix.overlay
More file actions
96 lines (82 loc) · 2.05 KB
/
Copy pathzhaw_lumamatrix.overlay
File metadata and controls
96 lines (82 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* Copyright (c) 2026, Institute of Embedded Systems ZHAW
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/led/led.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
chosen {
zephyr,display = &led_matrix;
};
aliases {
led-strip = &bff_led_strip;
sw0 = &joy_up;
sw1 = &joy_down;
sw2 = &joy_left;
sw3 = &joy_right;
sw4 = &joy_center;
sw5 = &switch;
};
buttons {
status = "okay";
compatible = "gpio-keys";
joy_up: joystick_up {
gpios = <&pico_header 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "joystick button up";
zephyr,code = <INPUT_KEY_UP>;
};
joy_down: joystick_down {
gpios = <&pico_header 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "joystick button down";
zephyr,code = <INPUT_KEY_DOWN>;
};
joy_left: joystick_left {
gpios = <&pico_header 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "joystick button left";
zephyr,code = <INPUT_KEY_LEFT>;
};
joy_right: joystick_right {
gpios = <&pico_header 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "joystick button right";
zephyr,code = <INPUT_KEY_RIGHT>;
};
joy_center: joystick_center {
gpios = <&pico_header 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "joystick button center";
zephyr,code = <INPUT_KEY_ENTER>;
};
switch: switch_0 {
gpios = <&pico_header 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "switch";
zephyr,code = <INPUT_KEY_0>;
};
};
led_matrix: led-matrix {
compatible = "led-strip-matrix";
status = "okay";
led-strips = <&bff_led_strip>;
width = <8>;
height = <8>;
circulative;
};
};
&pio0 {
status = "okay";
bff-ws2812 {
compatible = "worldsemi,ws2812-rpi_pico-pio";
status = "okay";
pinctrl-0 = <&pinctrl_bff_ws2812>;
pinctrl-names = "default";
bit-waveform = <3>, <3>, <4>;
bff_led_strip: bff_led_strip {
status = "okay";
gpios = <&pico_header 19 GPIO_ACTIVE_HIGH>;
chain-length = <64>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
LED_COLOR_ID_BLUE>;
reset-delay = <280>;
frequency = <800000>;
};
};
};