You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And that being applied in the NRF52Pin constructor. But this only sets the internal state of the NRF52Pin instance, it is only applied on first usage of get/setDigitalValue, when the setPull method is actually called:
However the MicroBitIO constructor, which will be executed after all the NRF52Pins have been constructed, it sets the internal pull state of the edge connector pins to PullNone and applies it:
On issue #357 we agreed that for V1 compatibility the pin pull downs should be enabled by default, as also discussed in #17.
Looking at NRF52Pin, it is probably achieved by having the default state in target.json/target-locked.json:
codal-microbit-v2/target.json
Line 26 in 3fa546f
And that being applied in the
NRF52Pin
constructor. But this only sets the internal state of theNRF52Pin
instance, it is only applied on first usage ofget
/setDigitalValue
, when thesetPull
method is actually called:However the
MicroBitIO
constructor, which will be executed after all theNRF52Pin
s have been constructed, it sets the internal pull state of the edge connector pins toPullNone
and applies it:codal-microbit-v2/model/MicroBitIO.cpp
Lines 99 to 101 in 4f2aedc
So not 100% sure how the pull downs are configured by default.
The text was updated successfully, but these errors were encountered: