From 3074c81e385cec0db0c493f093263f9c34e35912 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 26 Mar 2024 10:27:24 +1100 Subject: [PATCH] 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 --- src/codal_app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/codal_app/main.cpp b/src/codal_app/main.cpp index 00e91a9..09c89f7 100644 --- a/src/codal_app/main.cpp +++ b/src/codal_app/main.cpp @@ -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; }