Feb-11-2018, 11:25 AM
Hi all,
I have this FOR loop reading 8 channels from 3008 adc.
It runs eight times and thus i want 8 different values (ADC) as a result.
channels out of this loop.
Or... should i use a totally different approach?
I have this FOR loop reading 8 channels from 3008 adc.
It runs eight times and thus i want 8 different values (ADC) as a result.
def read_tmp36(sensorid): adc = (8+sensorid) return adc offset = 0 for offset in range(0,8): adc = read_tmp36(offset) print(adc) offset +=1Never mind the code shown for it is only for experimenting but how can i get the 8 different values for the 8
channels out of this loop.
Or... should i use a totally different approach?