carterw / loboris_backports

A list of suggested features that could be imported from the loboris ESP32 MicroPython fork into mainline MicroPython
6 stars 0 forks source link

RMT not available? ADC2 unavailable? #2

Open mogplus88 opened 4 years ago

mogplus88 commented 4 years ago

Just my two cents worth as a humble user.

  1. The RMT module seems to be not available in the Loboris port. It's used for some of the other functionality (neopoxel, DHT) but I could not discover a way to access it. In main MP it can be imported with "from esp32 import RMT" but "esp32" doesn't exist in Loboris version.
  2. I like the modifications to the ADC in Loboris, my project uses lots of adcs and the extra functionality really helped.
  3. I could not use ADC2 under Loboris. When I tried "xxx = ADC(Pin(25),unit=2" it returned "ADC unit error, only support ADC1 for now" message. I don't know if that's specific to my board (a Heltec WiFi Kit 32) or a broader problem.
carterw commented 4 years ago

This repository hasn't been updated for years, which is a shame. A lot of great features.

I like the ADC functions too, I find that you still get readings from the ADC2 pins in spite of the error message, but I don't know if they are accurate. You can't use WiFi while they are initialized though.