mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-27 03:17:06 -07:00
actually read from ADC
This commit is contained in:
parent
1096007a9d
commit
c30ae62356
|
@ -20,7 +20,9 @@ if __name__ == "__main__":
|
||||||
def get_reflectivity(chan):
|
def get_reflectivity(chan):
|
||||||
chan = int(chan)
|
chan = int(chan)
|
||||||
global mux
|
global mux
|
||||||
|
global adc_mux
|
||||||
mux = np.array(list(f"{chan:04b}"), dtype=int)
|
mux = np.array(list(f"{chan:04b}"), dtype=int)
|
||||||
|
return adc_mux.voltage
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
for ii in range(8):
|
for ii in range(8):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user