added servo

This commit is contained in:
2025-08-23 20:30:17 +02:00
parent d1f03f832b
commit e5c198058d
16 changed files with 198 additions and 24 deletions

View File

@@ -4,7 +4,22 @@ bool verify_are_devices_available(void) {
bool devices_ready = true;
if (!device_is_ready(led0.port)) {
printk("LED not ready\n");
printk("LED0 not ready\n");
devices_ready = false;
}
if (!device_is_ready(led1.port)) {
printk("LED1 not ready\n");
devices_ready = false;
}
if (!device_is_ready(led2.port)) {
printk("LED2 not ready\n");
devices_ready = false;
}
if (!pwm_is_ready_dt(&servo0)) {
printk("Servo0 not ready\n");
devices_ready = false;
}