-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi @jacobron,
first things first: Thanks so much for conceiving this data logger and also for sharing your design files and firmware code with the community. Keep up the spirit!
I found a short opportunity to quickly look at the code and found a specific thing I would like to mention here. As we can see with these lines initializing the ADC
| from machine import ADC |
EasyHive_Pycom_Shield/V1.0/software/main.py
Lines 157 to 160 in cc5b18d
| adc_mic = ADC(0) | |
| adc_mic.init(bits=12) | |
| adc_mic_c = adc_mic.channel(pin='P13', attn=ADC.ATTN_11DB) |
and later code for stuffing data into the buffer, this uses the highlevel ADC interface from the machine package.
On the other hand, I found the lowlevel ADC interface from the pyboard package provides convenient read_timed() and even read_timed_multi() methods. This feels a little bit like it would be more efficient when shuffling data around. What do you think about this?
With kind regards,
Andreas.