quick ADC1 Test under Eclipse & VM Lubuntu

WiFive
Posts: 977
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: 1043
Joined: Fri Nov 13, 2015 3:25 pm
Contact:

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 534 times


best wishes
rudi ;-)
note:
We enjoy our summer holidays 29th july to 11th september and recharge our batteries
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

WiFive
Posts: 977
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: Baidu [Spider], Yahoo [Bot] and 10 guests