lancaster-university / codal-microbit-v2

CODAL target for the micro:bit v2.x series of devices
MIT License
41 stars 50 forks source link

Default `uBit.io.logo` touch type should be capacitive. #411

Open microbit-carlos opened 4 months ago

microbit-carlos commented 4 months ago

For V1 compatibility pin touch mode should be resistive. The touch logo should be capacitive by default. I think this is the case when using uBit.logo (a TouchButton), but not when using uBit.io.logo (a NRF52Pin).

Is it possible to make the NRF52Pin uBit.io.logo capacitive by default?

microbit-carlos commented 3 months ago

Would adding uBit.io.logo.isTouched(TouchMode::Capacitative) inside uBit.init() be the best/simplest way to do this? I wouldn't go to the extreme to add an argument to the NRF52Pin constructor.

microbit-carlos commented 3 months ago

PR: