Skip to content

Commit

Permalink
More about micro:bit
Browse files Browse the repository at this point in the history
  • Loading branch information
yannisf committed Aug 18, 2024
1 parent 76765e2 commit faf8164
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions microbit/webusb.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,33 @@ I had trouble connecting to Microbit from Linux. I found out that in order to su

The device is mounted on modern linux systems through the `udev` device manager. In order to ensure appropriate permissions add the following rule in `/etc/udev/rules.d/` directory in a file named `microbit.rules`

```
```simple
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE="0666"
```

Then reload the rules, restart browser and enjoy.

```
```sudo
sudo udevadm control --reload-rules
```

Alternatively, restart Linux.

Information found [here](https://mattoppenheim.com/2018/06/24/using-udev-to-remove-the-need-for-sudo-with-the-bbc-microbit/).


## Serial console

Find which device node the micro:bit was assigned to with the command

```command
ls /dev/ttyACM*
```

If it was `/dev/ttyACM0`, type the command

```command
screen /dev/ttyACM0 115200
```

While attached to the serial console you might not be able to upload a new program in the microbit. Kill the screen session by `ctrl`+`a`,`k`.

0 comments on commit faf8164

Please sign in to comment.