quick ADC1 Test under Eclipse & VM Lubuntu

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: quick ADC1 Test under Eclipse & VM Lubuntu

Postby WiFive » Tue Nov 15, 2016 12:40 am

But where is adc1_read? ROM function not provided?

User avatar
rudi ;-)
Posts: 1731
Joined: Fri Nov 13, 2015 3:25 pm

Re: quick ADC1 Test under Eclipse & VM Lubuntu

Postby rudi ;-) » Tue Nov 15, 2016 1:46 am

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 6929 times
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: quick ADC1 Test under Eclipse & VM Lubuntu

Postby WiFive » Tue Nov 15, 2016 2:12 am

Oh I see it is in librtc.a. Check map file.


Who is online

Users browsing this forum: Bing [Bot] and 88 guests