Cybersecurity course logo

PX_lastname_ChessHouseXmas

Instructions

Lesson 2

Launch the micro:bit Python editor

Use the new version of the micro:bit.

Instructions

Generate 3 images:
ChessBoard
House
Christmax Tree
-Have this run continuously. (Recall what you used in the previous assignments. Need to put delay in place.)


Click here for guidance.


Additional helpful information:

Hint: To clear the display
microbit.display.clear()
Sets the brightness of all LEDs to 0 (off).

Hints:

from microbit import *
display.set_pixel(2,0,9)
display.set_pixel(1,1,9)
display.set_pixel(2,0,9)

The name of the file will be: PX_lastname_ChessHouseXmas

Files to save on Google Drive under your class
and submit to (Google Classroom)

  1. PX_lastname_ChessHouseXmas.png — Screenshot inside Python interpreter.
  2. PX_lastname_ChessHouseXmas.py — Python source file.
  3. PX_lastname_ChessHouseXmas.txt — Plain-text copy of your code.
  4. PX_lastname_ChessHouseXmas.hex — Hex file to run on the micro:bit hardware.
  5. PX_lastname_ChessHouseXmas.mp4 — Short demo video of the program running.

Submission requirements