pxt-microbit
Version:
micro:bit target for Microsoft MakeCode (PXT)
33 lines (19 loc) • 869 B
Markdown
Create an answering machine on the @boardname@
Show String
* [activity](/lessons/answering-machine/activity)
* [quiz](/lessons/answering-machine/quiz)
* [quiz answers](/lessons/answering-machine/quiz-answers)
* [challenges](/lessons/answering-machine/challenges)
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.
```cards
basic.showString('Hi!')
input.onButtonPressed(Button.A, () => {})
```
* 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