-
-
Notifications
You must be signed in to change notification settings - Fork 34
digitalRead() pull-down not working #88
Comments
Hi @fgaetani , Short explanation: the current porting layer for gpios wraps mbed's DigitalInOut objects in an ephemeral way; unfortunately, the mbed constructor that gets continuously called has a default pull (an internal PullUp in case of nRF52 platforms) that gets activated every time you create one of these objects. The new layer only initializes the object once to fix this in a sane way. |
Hi @facchinm , thanks a lot for the info. Thank you Best regards, |
ArduinoBLE compatibility with ArduinoCore-mbed should be solved by this arduino-libraries/ArduinoBLE@3b228dc (planning to release today 🙂 ) |
So the new reference to use will be ArduinoCore-mbed? Will ArduinoCore-nRF528x-mbedos be deprecated? |
That's the plan, keeping |
Hi, I have noticed a serious issue on digitalRead () on any pin. I have a system with a 47k pull-down resistor, and a switch that pull the pin high. However, I noticed that if I don't run the digitalRead () function the pin remains low (measured with a multimeter), when I run the digitalRead () function the pin goes high (about 2.6 Volt) unless I use a very low pull-down resistance (about 4.7 k).
How can I solve it?
Thank you
The text was updated successfully, but these errors were encountered: