mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-27 03:17:06 -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)
|
chan = int(chan)
|
||||||
global mux
|
global mux
|
||||||
global adc_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
|
return adc_mux.voltage
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user