Lesson 8: Images and Animation on the Micro:bit

Overview

In this lesson, students will learn about all the images available for the micro:bit and how to animate them in their programs.

Objectives

Materials

Spec Sheet

Pseudocode Sample

START
DISPLAY "HEART" image
WAIT 200ms
DISPLAY "HEART_SMALL" image
WAIT 200ms
DISPLAY "TRIANGLE" image
WAIT 200ms
DISPLAY "TRIANGLE_LEFT" image
WAIT 200ms
DISPLAY "DIAMOND" image
WAIT 200ms
DISPLAY "DIAMOND_SMALL" image
WAIT 200ms
DISPLAY "SQUARE" image
WAIT 200ms
DISPLAY "SQUARE_SMALL" image
WAIT 200ms
-Make sure that when you code this you use an loop that
transverse your table you defined and 
-DO NOT list each image individually
-Add on: you will need to put your initialize with every user defined identifier.
        

Click here to see explanation for each command you will use in your program.

Click here to find the images you must use based on your seat number.

Python Code for Micro:bit

from microbit import *

************** insert your python code here ************
        
Purpose: You will be using the Micro:bit physical Hardware.

In this lesson, you will write a Python program to run on the micro:bit 
that will learn the Microbit Hardware.
Your video will be of the actual Micro:Bit hardware.

You will drop off 5 files into Google Classroom:
	• Your files will be: (Remember the python program is dropped off first.)
		• PX_lastname_InterestingAnimiation.py (Python program)
		• PX_lastname_InterestingAnimiation.hex (Hex file for Microbit hardware)
		• PX_lastname_InterestingAnimiation.png (Screenshot)
		• PX_lastname_InterestingAnimiation.mp4 (Video running the program)
		• PX_lastname_InterestingAnimiation.mp4 (Video running the program on the micro:bit Hardware)

            
              Current Resources needed:
                 Launch the Micro:Bit Python interpreter
                 At this time you will run your code.
                 Use the online Microbit but still download the hex file for hardware use.

            
                 If you do not understand this assignment,
                 ask Mr. Cusack and/or attend tutorials.