Skip to content
Merged

Test #36

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assignments/01-reaction-game-discover/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The image above shows the diagram representing the control flow of the game. We
---

## Connecting the cables
Your ItsyBitsy has several connection ports on it.
Your PicoExpander has several connection ports on it.
To be sure that your code works properly, you need to make sure that the ports to which you connected your components are the same as those used in your code. your code.

For example, if you connect a component to port D7, you need to use the following code to reference it:
Expand Down
4 changes: 2 additions & 2 deletions assignments/03-game-controller-discover/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ These are just some examples of games you can play, and there are many more onli
---

## Safe mode
Especially when your ItsyBitsy is sending (wrong) keyboard inputs to your laptop, it can be useful to be able to stop the code from running, while still editing the code. By pressing the reset button right after start-up, while the LED is blinking yellow, the ItsyBitsy goes into [Safe mode](https://learn.adafruit.com/circuitpython-safe-mode/overview) where it will not execute any of your `code.py`.
You can do this right after plugging it in to your computer, or by pressing the reset button, waiting for the yellow lights, and pressing reset again. This allows you to fix the code without it interfering with your inputs. It will also disable auto-reload, so to start running your code again, you have to press the reset button once more.
Especially when your PicoExpander is sending (wrong) keyboard inputs to your laptop, it can be useful to be able to stop the code from running, while still editing the code. By pressing the BOOTSEL button right after start-up, while the LED is blinking yellow, the PicoExpander goes into [Safe mode](https://learn.adafruit.com/circuitpython-safe-mode/overview) where it will not execute any of your `code.py`.
You can do this right after plugging it in to your computer, or by pressing the reset button, waiting for the yellow lights, and pressing BOOTSEL. This allows you to fix the code without it interfering with your inputs. It will also disable auto-reload, so to start running your code again, you have to press the reset button once more.

---

Expand Down
2 changes: 1 addition & 1 deletion assignments/05-walkie-talkie-discover/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For this week’s assignment, we prepared a lot of different code snippets to he
Although we will use a lot of code, you are not required to understand every little line, but rather analyze your needs and search for the specific code sample.

{: .warning }
As a prerequisite for this tutorial to work, make sure you followed and successfully completed [Tutorial 4 of the Connected Interaction Kit website](https://id-studiolab.github.io/Connected-Interaction-Kit/tutorials/03-connect-to-the-internet/) and connected your ItsyBitsy to the internet.
As a prerequisite for this tutorial to work, make sure you followed and successfully completed [Tutorial 4 of the Connected Interaction Kit website](https://id-studiolab.github.io/Connected-Interaction-Kit/tutorials/03-connect-to-the-internet/) and connected your PicoExpander to the internet.

After connecting to the internet the next step is to [download the MQTT library](MQTT.zip) and move it to the ```/lib``` folder on your **CIRCUITPY drive**.
Next we are going to update the ```settings.toml``` file in order to connect to the MQTT server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ has_children: false

# Triggering different sequences based on context or interaction

How could we trigger different sequences based on user interaction or context? In this example, we will create a little ItsyCreature that sleeps peacefully until disturbed – in that case it wakes up and gets angry at the disturbance!
How could we trigger different sequences based on user interaction or context? In this example, we will create a little PicoCreature that sleeps peacefully until disturbed – in that case it wakes up and gets angry at the disturbance!

Connect the Chainable LED to pin `D10`, the Servo Motor to pin `D12` and the Touch Sensor to `D6`. By default, the creature will “sleep” in peace, but when touched get angry until the sensor is released again.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_children: false

# Triggering different sequences based on context or interaction

How could we trigger different sequences based on user interaction or context? In this example, we will create a little ItsyCreature that sleeps peacefully until disturbed – in that case it wakes up and gets angry at the disturbance!
How could we trigger different sequences based on user interaction or context? In this example, we will create a little PicoCreature that sleeps peacefully until disturbed – in that case it wakes up and gets angry at the disturbance!

Connect the Chainable LED to pin `D10`, the Servo Motor to pin `D12` and the Touch Sensor to `D6`. By default, the creature will “sleep” in peace, but when touched, it gets angry until the sensor is released again.

Expand Down
4 changes: 2 additions & 2 deletions tutorials/02-pomodoro/step1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ grand_parent: "Tutorials"
---

# 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.
To follow this tutorial, you will need your PicoExpander, 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:

Expand Down Expand Up @@ -36,6 +36,6 @@ 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.
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 PicoExpander. 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.

[Next Step](step2){: .btn .btn-blue }
2 changes: 1 addition & 1 deletion tutorials/02-pomodoro/step2.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ while True:

```

It's time to upload your code to the ItsyBitsy and see if it works! Your code should now:
It's time to upload your code to the PicoExpander and see if it works! Your code should now:

- Output a print statement once the state changes
- Switch between states upon button press
Expand Down
6 changes: 2 additions & 4 deletions tutorials/02-pomodoro/step3.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ grand_parent: "Tutorials"
---

# Step 3: Adding the LED
We can switch between two states, and the program prints some output when this switch happens. It would be nice to have a way to show the user which state the program is in now. We can make use of a LED for this. The ItsyBitsy doesn't have a standard library that can control the Grove Chainable LEDs, so we will need to go through some additional steps for it to work. Follow the tutorial below to get things set up.

[Using a Grove Chainable LED on the ItsyBitsy](https://www.notion.so/Using-a-Grove-Chainable-LED-on-the-ItsyBitsy-96b94be0d93647928cedf38bf2ed4097)
We can switch between two states, and the program prints some output when this switch happens. It would be nice to have a way to show the user which state the program is in now. We can make use of a LED for this.

Now we can import the neopixel library, and use it to set up some variables to control the LED.

Expand Down Expand Up @@ -72,7 +70,7 @@ while True:

```

It's time to upload your code to the ItsyBitsy and see if it works! Your code should now:
It's time to upload your code to the PicoExpander and see if it works! Your code should now:

- Output a print statement once the state changes
- Switch between states upon button press
Expand Down
2 changes: 1 addition & 1 deletion tutorials/02-pomodoro/step4.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ while True:

Now, we can switch from *state_idle* to state_work with a button press. Once the button is pressed, a timer starts with the duration of *work_duration*. Once this timer expires, we transition back to *state_idle*.

It's time to upload your code to the ItsyBitsy and see if it works! Your code should now:
It's time to upload your code to the PicoExpander and see if it works! Your code should now:

- Output a print statement once the state changes
- Switch from state_work to state_idle when the timer expires
Expand Down
2 changes: 1 addition & 1 deletion tutorials/02-pomodoro/step5.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ while True:

```

It's time to upload your code to the ItsyBitsy and see if it works! Your code should now:
It's time to upload your code to the PicoExpander and see if it works! Your code should now:

- Turn the LED green when switching to state_work
- Turn the LED red and turn on the buzzer when switching to state_break_alarm
Expand Down
4 changes: 2 additions & 2 deletions tutorials/02-pomodoro/step6.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ while True:

```

It's time to upload your code to the ItsyBitsy and see if it works! Your code should now:
It's time to upload your code to the PicoExpander and see if it works! Your code should now:

- Have the LED turn a different color upon entering a new state
- Sound the alarm in states state_break_alarm and state_work_alarm
Expand Down Expand Up @@ -121,7 +121,7 @@ Now we can add the behavior for the long break. When the timer runs out, we want

```

And here we have a functional Pomodoro timer! Upload your code to the ItsyBitsy and see if it works.
And here we have a functional Pomodoro timer! Upload your code to the PicoExpander and see if it works.

[Click here to see the code you should have until now.](step6-code)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/02-pomodoro/step7.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def update_servo_angle():

We can call this function in every state we have a timer in: *state_work*, *state_short_break*, and *state_long_break*.

Upload your code to the ItsyBitsy and see if it works. This concludes the programming part of the assignment!
Upload your code to the PicoExpander and see if it works. This concludes the programming part of the assignment!

[Click here to see the code you should have until now.](step7-code)

Expand Down