pxt-calliope/olddocs/js/lessons/show-string/challenges.md
2016-04-15 14:37:25 -07:00

762 B

show string challenges

My script. #docs

Challenge 0

Welcome! This guided tutorial introduces the basic show string method on the micro:bit.

Let's show the string 'Hello' on the LED screen. The string will scroll one character at a time from left to right.

basic.showString("Hello ", 150)

Challenge 1

Now, let's show the string 'World' on the LED screen.

basic.showString("Hello ", 150)
basic.showString("World", 150) // ***

Challenge 2

Let's display another string to introduce yourself!

After 'Hello World' we want to display the string 'My name is '.

basic.showString("Hello World", 150)
basic.showString("Good Night World ", 150) // ***

Challenge 3

Add Micro's response to Good Night World!