Lesson 0
Click here to launch the micro:bit Python interpreter.
Use the new version of micro:bit.
Complete Hello World. Click here.
Additional Challenges found in the above instructions.(Be sure to complete this)
1. Have students alter the code to scroll their own name in place of “world.”
display.scroll(‘Hello, Cindy!’)
2. Create a timer that counts down from 10. This can be done by adding two
spaces between each number.
display.scroll(‘10 9 8 7 6 5 4 3 2 1’)
3. How would the display be effected if spaces were added or removed
between characters? Have students experiment with the delay between
movements to control the speed of the characters scrolling across the
screen. The default is set to 150 milliseconds if the user does not specify
a delay. If the user does specify a delay, the program uses that value
instead.
display.scroll(‘Hello, Cindy!’, delay = 250)
******************************************************************
The name of the file will be: PX_lastname_HelloStudent
5 files to Save on google drive under our class name and Submit (Google Classroom)
- PX_lastname_HelloStudent.png — Screenshot inside Python intepreter.
- PX_lastname_HelloStudent.py — python source file.
- PX_lastname_HelloStudent.txt — Plain-text copy of your code.
- PX_lastname_HelloStudent.hex — hex file of your code to run on the micro:bit hardware.
- PX_lastname_HelloStudent.mp4 — Short demo video of the program running.
- You must get a code word from Mr. Cusack after you show him your hardware running.
- You must put in your comments in your submission.