Step 1: Preparation
To follow this tutorial, you will need your ItsyBitsy, a chainable LED, a button, a buzzer, and a servo motor. You will also need materials to construct the Pomodoro Timer embodiment. These materials can be picked up at the faculty.
The Pomodoro technique can be described by the following steps:
- Set the pomodoro timer.
- Work on the task.
- When the timer rings, stop working on the task.
- Take a small break. If you’ve had three small breaks, take a longer break instead.
- Repeat until task is done.
These steps will look like this in a state diagram:
Open Mu and create a new file. Add the following template to the file:
##--- Imports
##--- Variables
##--- Functions
##--- Acting Machine cause functions
##--- Acting machine effect functions
##--- Main loop
while True:
return
This template provides us with some basic organization for the programming that we will do in the following steps. Save this new file as code.py on your ItsyBitsy. If you already have a code.py file from a previous tutorial, move it over to some place on your computer so you can access it later.