pxt-calliope/docs/lessons/answering-machine.md
2016-05-26 15:24:10 -07:00

871 B

answering machine blocks lesson

Create an answering machine on the BBC micro:bit

Topic

Show String

Prior learning / place of lesson in scheme of work

Learn how to creating a message with a string, show string to write your message. We will be learning how to create a message using simple commands, such as show string and on button pressed.

Documentation

basic.showString('Hi!')
input.onButtonPressed(Button.A, () => {})

Objectives

  • learn how to show a string on the LED screen one character at a time
  • learn how to use to register an event handler that will execute whenever an input button is pressed