Skip to content

Commit

Permalink
codal_app/main: Initialise logo pin in capacitive touch mode.
Browse files Browse the repository at this point in the history
Capacitive touch mode is more sensitive.  The other (edge connector) pins
are left in resistive touch mode by default, to match micro:bit v1.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Mar 25, 2024
1 parent af721c7 commit 3074c81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codal_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ int main() {
uBit.audio.setSpeakerEnabled(true);
uBit.audio.setPinEnabled(false);

// Initialise the logo pin in capacitive touch mode.
uBit.io.logo.isTouched(TouchMode::Capacitative);

mp_main();
return 0;
}

0 comments on commit 3074c81

Please sign in to comment.