mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 10:57:55 -07:00
WIP: properly invert mux signals
This commit is contained in:
parent
50f83ee6bf
commit
772f8ddc9f
|
@ -23,7 +23,7 @@ if __name__ == "__main__":
|
|||
chan = int(chan)
|
||||
global mux
|
||||
global adc_mux
|
||||
mux = np.array(list(f"{chan:04b}"), dtype=int)
|
||||
mux = 1-np.array(list(f"{chan:04b}"), dtype=int)
|
||||
return adc_mux.voltage
|
||||
|
||||
while True:
|
||||
|
|
Loading…
Reference in New Issue
Block a user