Merge branch 'master' of https://git.pupes.org/PoliEcho/sint-gauntlet
This commit is contained in:
commit
d687c2e24c
19
mux.c
Normal file
19
mux.c
Normal 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++) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -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);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user