18 lines
302 B
Plaintext
18 lines
302 B
Plaintext
/ {
|
|
aliases {
|
|
led0 = &red_led;
|
|
led1 = &blue_led;
|
|
led2 = &green_led;
|
|
sw0 = &user_button0;
|
|
};
|
|
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
|
|
user_button0: button {
|
|
label = "Button";
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
|
zephyr,code = <INPUT_KEY_0>;
|
|
};
|
|
};
|
|
}; |