diff --git a/source/samples/CapTouchTest.cpp b/source/samples/CapTouchTest.cpp index a4c1228e..06d06552 100644 --- a/source/samples/CapTouchTest.cpp +++ b/source/samples/CapTouchTest.cpp @@ -128,9 +128,9 @@ static void onTouchP2(MicroBitEvent e) { DMESG("TOUCH: P2"); } -static void onTouchFace(MicroBitEvent e) +static void onTouchLogo(MicroBitEvent e) { - DMESG("TOUCH: FACE"); + DMESG("TOUCH: LOGO"); } void @@ -139,7 +139,7 @@ cap_touch_test() uBit.messageBus.listen(MICROBIT_ID_IO_P0, MICROBIT_BUTTON_EVT_CLICK, onTouchP0); uBit.messageBus.listen(MICROBIT_ID_IO_P1, MICROBIT_BUTTON_EVT_CLICK, onTouchP1); uBit.messageBus.listen(MICROBIT_ID_IO_P2, MICROBIT_BUTTON_EVT_CLICK, onTouchP2); - uBit.messageBus.listen(MICROBIT_ID_FACE, MICROBIT_BUTTON_EVT_CLICK, onTouchFace); + uBit.messageBus.listen(MICROBIT_ID_LOGO, MICROBIT_BUTTON_EVT_CLICK, onTouchLogo); while(1) { diff --git a/source/samples/OOB.cpp b/source/samples/OOB.cpp index 89be5d85..cf3a8538 100644 --- a/source/samples/OOB.cpp +++ b/source/samples/OOB.cpp @@ -852,8 +852,8 @@ void clap() { mode++; } -void onFacePalm(MicroBitEvent e) { - uBit.serial.printf("face palm \r\n"); +void onLogoTouch(MicroBitEvent e) { + uBit.serial.printf("logo touch \r\n"); mute = !mute; } @@ -865,9 +865,9 @@ out_of_box_experience_v2() create_fiber(playback_ticker); - /* Disable face touch to mute - uBit.io.face.isTouched(); - uBit.messageBus.listen(uBit.io.face.id, MICROBIT_BUTTON_EVT_CLICK, onFacePalm); + /* Disable logo touch to mute + uBit.io.logo.isTouched(); + uBit.messageBus.listen(uBit.io.logo.id, MICROBIT_BUTTON_EVT_CLICK, onLogoTouch); */ mode = WAKE;