Page 2 of 2

Re: quick ADC1 Test under Eclipse & VM Lubuntu

Posted: Tue Nov 15, 2016 12:40 am
by WiFive
But where is adc1_read? ROM function not provided?

Re: quick ADC1 Test under Eclipse & VM Lubuntu

Posted: Tue Nov 15, 2016 1:46 am
by rudi ;-)
WiFive wrote:But where is adc1_read? ROM function not provided?
btw:
Add the ADC class in the machine module

Code: Select all

from machine import ADC
adc = ADC(0)
adc_c = adc.channel(pin='P13')
adc_c()
adc_c.value()
src

not found just in time in c code - we must search :mrgreen:
( each lib expand and searching in txt file )

but

OnSoC Temperature Sensor found and runs:
code_test.png
code_test.png (41.61 KiB) Viewed 6257 times
best wishes
rudi ;-)

Re: quick ADC1 Test under Eclipse & VM Lubuntu

Posted: Tue Nov 15, 2016 2:12 am
by WiFive
Oh I see it is in librtc.a. Check map file.

Re: quick ADC1 Test under Eclipse & VM Lubuntu

Posted: Tue Nov 15, 2016 7:17 am
by comcat