pulkin / micropython

MicroPython implementation on Ai-Thinker GPRS module A9 (RDA8955)
https://micropython.org
MIT License
102 stars 30 forks source link

ADC #4

Closed pulkin closed 4 years ago

pulkin commented 4 years ago

Analog-digital converter in machine.ADC

arlucio commented 4 years ago

I've ported ADS1x15 Micropython lib for A9 (https://github.com/arlucio/ads1x15_A9)

As A9 has only 3 ADCs, it is pretty useful to expand ADCs number using the I2C interfaces. Meanwhile we don't port A9 ADC, it's also a good solution. Been using it without any problems.

Maybe it's a good idea to link it somewhere on the readme.

pulkin commented 4 years ago

Awesome, people from the upstream might be interested putting it somewhere into drivers such that other ports will also benefit from your implementation. Publishing it via pip is another option.

pulkin commented 4 years ago

I ported ADC for those two pins. Note that they are measuring up to 1V.