At the end of this lesson, you will be able to:
get the "Hello, World!" program working on a PyBadge
ensure you create a GitHub repo, to back up your code
you will have to "copy" over the files from your PyBadge
I find using VSCode inside GitHub the easiest way to do this
go over what is a microcontroller
go over how to load the latest version of CircuitPython on it
go over PyBadge
go over using Mu for an IDE
work through how to set up PyCharm and CircuitPython
go over using VSCode.dev for an IDE, and GitHub is built right in!
you could also use Cloud9 or any other text editor or IDE and just copy over the file
you could also use Mr. Coxall's CircuitPython online IDE (ide.mths.ca)
to see what is displayed on the PyBadge screen, use the "serial console"
inside your ICS3U GitHub organization, create a GitHub repo called: ICS3U-Space-Aliens
create a GitHub Super Linter (see References->Linters)
update the README.md file (see References->Linters)
on your Desktop, inside your Documents folder:
create a folder called "ICS3U Programming"
inside this folder, create a folder called "CPT"
open VSCode:
pin it to your taskbar
if not done yet, set up your SSH key first! (See References -> SSH Key Setup)
then open up a Bash terminal
if there is no option for a Bash terminal, you need to install GitBash
open your "CPT" folder
git clone your "ICS3U-Space-Aliens" repo to this folder
work through "Space Aliens-01"
Note: currently the adafruit-circuitpython version 7.X is not working properly with our code. Instead install the 6.0 version provided in the Google drive folder (see bottom of this page)
go over how to write a CircuitPython program and then transfer it to a microcontroller
you must name the program: code.py
go over the "Hello, World!" program
Note: right click on the folder and eject PyBadge before disconnecting
go over "while True: " and "pass"
always back up your code to GitHub!
Note: If Linter fails, make sure to have the following order:
import stage
import ugame
complete the Daily Assignment section in Hãpara Workspace for this day
if Hãpara is not working, make a copy of this document
move it to your IMH-ICS folder for this course