Skip to content
Snippets Groups Projects
Commit 5e2eae46 authored by miriamino's avatar miriamino
Browse files

Update firstinterhacktions.md

parent 773ca1a9
No related branches found
No related tags found
No related merge requests found
Pipeline #2241 passed
......@@ -14,18 +14,19 @@ You need:
### Getting to the interactive python command line
Switch on your card10.
If your card10 display shows the text _USB activated._ your card10 is in the _USB storage_ mode, which is the wrong mode for the interactive pythong command line. A brief press on the _power_ button will exit the _USB storage_ mode.
If your card10 display shows the text _USB activated._ your card10 is in the _USB storage_ mode, which is the wrong mode for the interactive python command line. If the device is mounted you need to eject it first. A brief press on the _power_ button will exit the _USB storage_ mode.
<!-- a picture here, indicating the right button would be nice -->
To get to the interactive command line, connect your card10 to your laptop. Typically, it will be called `/dev/ttyACM0` or `/dev/ttyACM1`.
You can find out what it is called on your machine by comparing the output of `ls /dev/tty*` before and after you connect your card10 to the laptop.
Depending on which tool you chose, you can open the interactive python command line
Depending on which tool you chose, you can open the interactive python command line. You might need to add "sudo" in front of the commands.
- using screen: `screen /dev/ttyACM0 115200`
- using picocom: `picocom -b 115200 /dev/ttyACM0`
You might need to add "sudo" in front of the commands.
If you don't see a line starting with _>>>_, try pressing _Ctrl+C_.
If you don't see a line starting with _>>>_, try pressing _Ctrl+C_ (maybe more than once).
<div class="p-notification--information">
<p class="p-notification__response">
......@@ -44,12 +45,13 @@ There are some neat python functions prepared for making the leds blink. Let's i
Next, we light up one of the r0kets by typing:
```leds.set_rocket(0, 100)```
The first number entered is the index for selecting the r0ket LED. You can choose between 0 and 2.
The first number entered is the index for selecting the r0ket LED. You can choose between 0 (blue, left) , 1 (yellow, middle) and 2 (green, right).
## Using card10 in USB storage mode
### Closing a session
To close a session in screen, press ```Crtl+A``` then `k` then `y`
## Congratulations!
When applying your newly learned card10 skills, please have a look at the [general considerations for designing Interhacktions](/en/interhacktions). Also bear in mind that some blinking patterns have been assigned a special meaning for communicating a traveler's [personal state](/ps).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment