Project 10: Touch-sensitive Logo

Click to download the code for this lesson
(1)Project Description:
The Micro: Bit main board V2 is equipped with a golden touch- sensitive logo, which can act as an input component and function like an extra button.
It contains a capacitive touch sensor that senses small changes in the electric field when pressed (or touched), just like your phone or tablet screen do.When you press it , you can activate the program.
(2)Components Needed:
Micro:bit main board V2
Micro USB cable
(3)Test Code :
Link computer with micro:bit board by micro USB cable, and program in MakeCode editor,

Complete Program :

(4)Test Results:
After uploading the code, touching the logo with your hand will display a heart shape on the dot matrix. Releasing your touch will reveal a number, with longer contact times displaying larger numbers.
