Python and C# Lessons

Using MakeCode? Go to the MakeCode page. These lessons are for C# and Python coding options.


API Quick Reference A handy “cheat sheet” showing everything below in one short and quick form.
Hardware Reference A quick reference to the hardware with some additional advanced info.

Getting Started


Python BasicsDescription
Python SetupThe very first starting point to help setup a computer with the necessary software and tools.
Python IntroA lesson for those who have never coded in Python. This leads into individual language-independent lessons involving coding basics (below).


C# BasicsDescription
C# System SetupThe very first starting point to help setup a computer with the necessary software and tools.
C# New ProjectShows step-by-step how to create a Visual Studio project.
C# IntroA lesson for those who have never coded in C#. This leads into individual language-independent lessons involving coding basics (below).

Coding Basics

Coding BasicsDescription
VariablesLearn about how variables work and what kinds there are.
LoopsLesson on the various kinds of loops used in programming.
Flow ControlConditional statement lessons. How computers decide.
OperatorsSymbols that help us mathematically and with logic checks.
FunctionsIn this lesson we learn about functions and how to pass arguments and return values.
Built-in FunctionsShows what functions are built right into the BrainPad.
Drawing FunctionsLessons covering everything needed to use the display.
Math ArtMath was never this exciting, and we will show you how!


Nothing is more fun than making your own games. The BrainPad Pulse is everything you need to get started, but the BrainGamer allows you to build more interesting games. Oh! And the BrainGamer has a rechargeable battery.

The BrainPad Tick can be used for games, but the 5×5 LEDs limit the possibilities.

Game LessonDescription
Gaming IntroAn intro to gaming with a simple game that is less than 50 lines of code.
BrainPad Tick LessonDescription
Tick Gaming IntroHow to create a simple game that works with a 5×5 LED matrix.
BrainGamer LessonDescription
BrainGamer AssemblyAssembling BrainGamer.
BrainGamer IntroBasic info about safety and setting up the coding environment.
BrainGamer APIThe BrainGamer programming interface (API).
BrainGamer PongCreating the classic game step-by-step


Use our BrainBot accessory to learn about robotics and AI (Artificial Intelligence). BrainPad Pulse works perfectly with BrainBot. BrainPad Tick works as well but with some limitations as explained in the lessons.

Robotics LessonDescription
BrainBot AssemblyAssembling your BrainBot.
BrainBot IntroBasic info and setting up the coding environment.
BrainBot APIThe built-in API for the BrainBot.
BrainBot DanceBringing your BrainBot to life.
BrainBot FlashyUsing the onboard Headlights and Taillights.
BrainBot CollisionThe onboard distance sensor can detect objects when near.
BrainBot AutonomousMaking the BrainBot follow a specific path using the ground sensor.

Physical Computing

These advanced lessons show in detail physical computing. The lessons are language-independent and cover the BrainPad’s API specifics.

Physical Computing
BrainPad APIControl functions Print(), Wait(), Out(), In(), and OutIn().
Input -> Process -> OutPhysical computing and how “things” connect to a computer (processor).
In & Out ElementsExplains what elements connect and work with the BrainPad. The lessons below cover these elements.
DigitalDigital Signals, how they work and why.
AnalogAnalog Signals, how they work and why.
ButtonHow buttons are used to control things.
SoundGenerating sounds from simple beeps and alarms to playing a song.
ServoServo motors, what types there are and how to use them.
NeoPixelControlling NeoPixel LEDs.
AccelUsing an accelerometer to detect position and movement.
DistanceWhat are distance sensors? How and what are they used for.
InfraredWhat is infrared and how can I use it?
TouchYour body is conductive and the BrainPad can use it to control things.
I2cbusI2C is a computer protocol that chips can use to talk to each other.


Learning about circuits and programing modules to work with the BrainPad brings a whole new meaning to the idea of coding something physical and real. BrainPower, BrainClip and BrainTronics accessories take advantage of this.

BrainPower LessonDescription
BrainPower AssemblyAssembling the BrainPower pack.
BrainPower IntroBasic info and setting it up for coding.
Countdown TimerNever forget about the pizza in the oven again, thanks to this countdown timer!
Analog WatchGive the watch a “face” and turn it into an analog watch.
BrainClip LessonDescription
BrainClip IntroGet started on understanding the use of alligator wire clips and how modules connect to the BrainPad.
BrainClip DigitalExplore the digital input and output modules.
BrainClip AnalogMove to the analog modules and learn how they work.
BrainClip BeyondCovers the other modules beyond what is covered in previous lessons.
BrainTronics LessonDescription
BrainTronics IntroAn intro lesson showing how components plug and work in breadboards.

Beyond the Basics

These lessons will take the user to the next level of coding!

PC C# CodingAn introductory lesson on how a PC can be programmed, utilizing the existing BrainPad knowledge.
C# for CircuitsAn introductory lesson on how to transition from coding only BrainPad to other circuits.

Make them your own!

The lessons are provided under the Creative Common license CC-BY. You are free to use and modify the lesson plans as you see fit.