Skip to content

Commit 3074c81

Browse files
committed
codal_app/main: Initialise logo pin in capacitive touch mode.
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 <[email protected]>
1 parent af721c7 commit 3074c81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codal_app/main.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ int main() {
7575
uBit.audio.setSpeakerEnabled(true);
7676
uBit.audio.setPinEnabled(false);
7777

78+
// Initialise the logo pin in capacitive touch mode.
79+
uBit.io.logo.isTouched(TouchMode::Capacitative);
80+
7881
mp_main();
7982
return 0;
8083
}

0 commit comments

Comments
 (0)