#Hardware Platform: FireBeetle-ESP32
#Result: read analog voltage of the IO interfaces.
#The info below shows that analogRead is available for the current version.
# A0/IO36   A1/IO39   A2/IO34   A3/IO35   A4/IO15
#There are 5 analog input interfaces (A0~A4) in FireBeetle-ESP32.


from machine import ADC,Pin
import time

adc0=ADC(Pin(36))               #create ADC object
adc1=ADC(Pin(39))
adc2=ADC(Pin(34))
adc3=ADC(Pin(35))
adc4=ADC(Pin(15))

while True:
  print("adc0=",adc0.read())    #Read ADC value
  #print("adc1=",adc1.read())
  #print("adc2=",adc2.read())
  #print("adc3=",adc3.read())
  #print("adc4=",adc3.read())
  time.sleep(0.1)
#Hardware Platform: FireBeetle-ESP32
#Result: read analog voltage of the IO interfaces.
#The info below shows that analogRead is available for the current version.
# A0/IO36   A1/IO39   A2/IO34   A3/IO35   A4/IO15
#There are 5 analog input interfaces (A0~A4) in FireBeetle-ESP32.


from machine import ADC,Pin
import time

adc0=ADC(Pin(36))               #create ADC object
adc1=ADC(Pin(39))
adc2=ADC(Pin(34))
adc3=ADC(Pin(35))
adc4=ADC(Pin(15))

while True:
  print("adc0=",adc0.read())    #Read ADC value
  #print("adc1=",adc1.read())
  #print("adc2=",adc2.read())
  #print("adc3=",adc3.read())
  #print("adc4=",adc3.read())
  time.sleep(0.1)
#Hardware Platform: FireBeetle-ESP32 #Result: read analog voltage of the IO interfaces. #The info below shows that analogRead is available for the current version. # A0/IO36   A1/IO39   A2/IO34   A3/IO35   A4/IO15 #There are 5 analog input interfaces (A0~A4) in FireBeetle-ESP32. #create ADC object #Read ADC value #print("adc1=",adc1.read()) #print("adc2=",adc2.read()) #print("adc3=",adc3.read()) #print("adc4=",adc3.read())