File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
boards/st/stm32l4r9i_disco Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 39
39
gpios = <&gpioc 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
40
40
zephyr,code = <INPUT_KEY_ENTER>;
41
41
};
42
+ joy_up: joystick_up {
43
+ label = "joystick up";
44
+ gpios = <&mfx 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
45
+ zephyr,code = <INPUT_KEY_UP>;
46
+ };
47
+ joy_down: joystick_down {
48
+ label = "joystick down";
49
+ gpios = <&mfx 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
50
+ zephyr,code = <INPUT_KEY_DOWN>;
51
+ };
52
+ joy_right: joystick_right {
53
+ label = "joystick right";
54
+ gpios = <&mfx 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
55
+ zephyr,code = <INPUT_KEY_RIGHT>;
56
+ };
57
+ joy_left: joystick_left {
58
+ label = "joystick left";
59
+ gpios = <&mfx 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
60
+ zephyr,code = <INPUT_KEY_LEFT>;
61
+ };
42
62
};
43
63
44
64
aliases {
45
65
led0 = &green_led;
46
66
led1 = &orange_led;
47
67
sw0 = &joy_sel;
68
+ sw1 = &joy_up;
69
+ sw2 = &joy_down;
70
+ sw3 = &joy_right;
71
+ sw4 = &joy_left;
48
72
die-temp0 = &die_temp;
49
73
volt-sensor0 = &vref;
50
74
volt-sensor1 = &vbat;
You can’t perform that action at this time.
0 commit comments