Internal pull-up support on Unit PbHub / Unit EXT.IO2?
-
Hello,
I am using Unit PbHub and would like to ask about internal pull-up resistors.
The STM32F030 used in PbHub and EXT.IO2 supports internal pull-up/pull-down at the hardware level, but I could not find any way to enable pull-ups using the current M5Stack libraries. There seems to be no API to configure pull modes.
Is it currently possible to enable internal pull-up resistors on PbHub or EXT.IO2?
If not, is firmware modification the only option, or are there plans to support this in the future?
I would appreciate any official clarification or recommended workaround.
Thank you. -
Hello @sk-ys
currently PbHub does not support internal pull-up/pull-down resistors. See FAQ at the end of the documentation page here. I assume the same is true for EXT.IO2.
Note: I have no idea if there are plans to support this feature in the future.
BTW: I faced the same issue a while ago and I resorted to adding some 10 k SMD resistors to the inputs.
Thanks
Felix