This commit is contained in:
Tom-on64 2026-04-24 14:49:24 +02:00
commit d687c2e24c
2 changed files with 19 additions and 5 deletions

19
mux.c Normal file
View File

@ -0,0 +1,19 @@
#include "const.h"
#include <stdint.h>
#include <hardware/gpio.h>
void set_mux_addr(uint8_t addr) {
gpio_put(MUX_S0, addr & 1);
gpio_put(MUX_S1, (addr >> 1) & 1);
gpio_put(MUX_S2, (addr >> 2) & 1);
}
float read_value_from_mux() {
return ;
}
void update_inputs() {
for(uint8_t i = 0; i < 2; i++) {
}
}

View File

@ -40,9 +40,4 @@ void init_all() {
__attribute__((noreturn)) int main() {
init_all();
gpio_init(MUX_S0);
gpio_init(MUX_S1);
gpio_init(MUX_S1);
}