mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 10:57:55 -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):
|
||||
chan = int(chan)
|
||||
global mux
|
||||
global adc_mux
|
||||
mux = np.array(list(f"{chan:04b}"), dtype=int)
|
||||
return adc_mux.voltage
|
||||
|
||||
while True:
|
||||
for ii in range(8):
|
||||
|
|
Loading…
Reference in New Issue
Block a user