From faf8164820fd504fd4683851ee0494e8e7014291 Mon Sep 17 00:00:00 2001 From: yannisf Date: Sun, 18 Aug 2024 17:04:25 +0300 Subject: [PATCH] More about micro:bit --- microbit/webusb.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/microbit/webusb.md b/microbit/webusb.md index aff5ac5..baa3cc4 100644 --- a/microbit/webusb.md +++ b/microbit/webusb.md @@ -11,13 +11,13 @@ 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 ``` @@ -25,4 +25,19 @@ sudo udevadm control --reload-rules Information found [here](https://mattoppenheim.com/2018/06/24/using-udev-to-remove-the-need-for-sudo-with-the-bbc-microbit/). - \ No newline at end of file +## 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`. +