First implementation of digital out for leg enable

This commit is contained in:
Your Name
2026-10-02 13:08:52 +03:00
parent 525dc6d8f2
commit 06f53e4afe
9 changed files with 233 additions and 1 deletions
+9
View File
@@ -4,6 +4,7 @@
#include "servo.h"
#include "adc.h"
#include "usb.h"
#include "digital_out.h"
#include <zephyr/logging/log.h>
@@ -114,6 +115,14 @@ int command_handler(struct command_message_t *msg) {
break;
}
case DIGITAL_LEG_OUT: {
uint8_t mask = msg->data[0];
digital_out_set_leg(mask);
break;
}
default: {
LOG_WRN("Unknown command received: %d", msg->command);
return -EINVAL;