I have been using hall_sensor as my main input interface, create fake magnetic pin to use as pushbuttons #12628
Unanswered
tombelpasso
asked this question in
ESP32
Replies: 2 comments 1 reply
-
Here's the code I used to simulate a physical pin using the ESP32 hall_sensor.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
According to Espressif "Mifgration from 4.4 to 5.0" " API hall_sensor_read on ESP32 has been removed. Hall sensor is no longer supported on ESP32." So if you need the hall sensor, you are stuck with MicroPython firmware that was compiled with ESPIDF-4.4. My last local copy of MicroPython that has |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
The boards I'm using LILYGO_TTGO_LORA32 are very IO limited. Also it is an outdoor application so using the magnet as input doesn't use any pins and was physically easy to implement. I sense positive and negative values over a certain threshold and treat them as pins for the primitives/Pushbutton asyncio. So it is like having two physical pin.
I've been using: LILYGO_TTGO_LORA32-20220618-v1.19.1.bin code
Is there a way to access the hall_sensor value on the lastest 1.2 version?
Any advice is welcome.
If anybody cares, I can post my MagnetPin code which makes it act like a physical pin.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions