Name Tag
Turn your micro:bit into a digital name tag
See your name in π‘ lights! π‘ Code the micro:bit to scroll your name across the screen.
{Step 1}
Click on the ||basic:Basic||
category in the Toolbox.
Drag a ||basic:show string||
block into the ||basic:forever||
block.
Then in the ||basic:show string||
block, change the text from βHello!β to your name.
basic.forever(function() {
basic.showString("My Name");
})
{Step 2}
Look at the micro:bit simulator on the screen. Do you see your name scrolling across? β Great job! β Youβve turned the micro:bit into a digital name tag!
{Step 3}
If you have a micro:bit device, connect it to your computer and click the |Download|
button. Follow the instructions to transfer your code onto the micro:bit and watch your name appear in lights!
{Step 4}
Go further - try adding more ||basic:show string||
blocks to create a story! Learn more about how the micro:bit lights work by watching this video.
basic.forever(function() {})