Skip to content

Atividade

Distintivo emocional por toque

Iniciante | MakeCode, Python | Botões, Tela de LED, Touch logo | Entrada/saída

Passo 1: Projeto

O que é?

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

Introdução

Coding guide

O que você aprenderá

  • 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

Como funciona

  • 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.

O que você precisa

  • new micro:bit with sound (or MakeCode simulator)
  • Editor MakeCode ou Python
  • bateria (opcional)

Passo 2: É hora de programar

Passo 3: Vamos melhorar

  • 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.