Combined mux.c and buttons.c to input.c

This commit is contained in:
2026-04-26 17:04:37 +02:00
parent 8a55e8e60c
commit 1fd0a56064
10 changed files with 138 additions and 121 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <sys/types.h>
typedef struct {
float pots[16];
bool buttons[4];
} input_t;
extern bool is_toggle[4];
static inline void set_toggle_button(uint8_t index, bool toggle) { is_toggle[index] = toggle; }
void update_inputs(input_t* input);