Uppfærði kóðann til að virkja Fault takka

This commit is contained in:
2026-10-14 12:21:45 +00:00
parent 782feb2d04
commit 1250860efe
3 changed files with 37 additions and 9 deletions
+7 -1
View File
@@ -10,6 +10,7 @@
motor-bin2 = &motor_bin2;
motor-flt = &motor_flt;
motor-slp = &motor_slp;
fault-test-button = &fault_test_button;
};
buttons {
@@ -29,8 +30,13 @@
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* A0, PA0 */
label = "Motor fault";
};
fault_test_button: fault_test_button {
gpios = <&gpiob 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* D3, PB0 */
label = "Fault test button";
};
};
motor_gpio_outputs {
compatible = "gpio-leds";