ULP gpio digital read? #12863
Replies: 1 comment 7 replies
-
Hi @kjm1102 I'm working on creation of a water consumption counter. And needed to read 2 channels digitally from the balanced magnetic switches (toggles every 10 liters) + touch PIN for flooding sensor (but as wakeup source for main MCU). I'm a bit confused on using RTCIO_TOUCHPAD instead of RTC_GPIO_IN (see idf pulse_cnt.S example). Did you progress with finding an answer on your question from elsewhere? Can you comment on reasons for using touchpad instead of gpio? Regards, Nikolay |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is provision for managing gpio pullups when used with the ULP, eg for gpio4
However these don't work in the examples @ https://github.com/micropython/micropython-esp32-ulp/tree/master/examples, you have to add an external pullup. I think this is because all the examples use the gpio inputs with the RTC mux eg
rather than the digital mux? Although this a bit of a wild guess, I'm struggling to keep my head above water here.
In all my prowling around the web I can't find an example for ULP reading a gpio input configured with an internal pullup. Surely this is possible?
Beta Was this translation helpful? Give feedback.
All reactions