Skip to content


Touch emotion badge

초급 | MakeCode, Python | LED, 버튼, 터치 로고 | 입력/출력

1단계: 만들어 보세요.

프로젝트 소개

Add another expression to an emotion badge project using the new micro:bit's touch logo sensor as an extra button


프로그래밍 가이드

학습 내용

  • How computers take inputs, process them using code and create different outputs
  • How to use the new micro:bit's touch logo like a button input to trigger outputs


  • This program senses if you press button A and shows a happy face icon on the LED display output.
  • It senses if you press button B and shows a sad face on the LED display.
  • If you touch the gold logo on the front of the new micro:bit, the program detects your finger and shows a surprised face on the LEDs.


  • new micro:bit with sound (or MakeCode simulator)
  • MakeCode 또는 Python 편집기
  • AAA 배터리 팩 (옵션)

2단계: 프로그래밍 해보세요.

3단계: 더 좋게 만들어 보세요.

  • Change the icons that appear, or draw your own to show different emotions.
  • Create an animated sequence of faces when you press each button.
  • Add different sounds that match each emotion.