aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2020-09-06-esp-and-micropython.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/2020-09-06-esp-and-micropython.md')
-rw-r--r--content/posts/2020-09-06-esp-and-micropython.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/posts/2020-09-06-esp-and-micropython.md b/content/posts/2020-09-06-esp-and-micropython.md
index 4591811..fb7e150 100644
--- a/content/posts/2020-09-06-esp-and-micropython.md
+++ b/content/posts/2020-09-06-esp-and-micropython.md
@@ -38,7 +38,7 @@ executing `dmesg | grep ch341-uart`.
38Then check if the device is available under `/dev/` by running `ls 38Then check if the device is available under `/dev/` by running `ls
39/dev/ttyUSB*`. 39/dev/ttyUSB*`.
40 40
41> **Linux users**: if a device is not available be sure you are in `dialout` 41> **Linux users**: if a device is not available be sure you are in `dialout`
42> group. You can check this by executing `groups $USER`. You can add a user to 42> group. You can check this by executing `groups $USER`. You can add a user to
43> `dialout` group with `sudo adduser $USER dialout`. 43> `dialout` group with `sudo adduser $USER dialout`.
44 44
@@ -79,7 +79,7 @@ esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 e
79If everything went ok you can try accessing MicroPython REPL with ` screen 79If everything went ok you can try accessing MicroPython REPL with ` screen
80/dev/ttyUSB0 115200` or `picocom /dev/ttyUSB0 -b115200`. 80/dev/ttyUSB0 115200` or `picocom /dev/ttyUSB0 -b115200`.
81 81
82> Sometimes you will need to press `ENTER` in `screen` or `picocom` to access 82> Sometimes you will need to press `ENTER` in `screen` or `picocom` to access
83> REPL. 83> REPL.
84 84
85When you are in REPL you can test if all is working properly following steps. 85When you are in REPL you can test if all is working properly following steps.
@@ -121,7 +121,6 @@ sudo pip3 install adafruit-ampy
121Listed below are some common commands I used. 121Listed below are some common commands I used.
122 122
123```bash 123```bash
124
125# uploads file to flash 124# uploads file to flash
126ampy --delay 2 --port /dev/ttyUSB0 put boot.py 125ampy --delay 2 --port /dev/ttyUSB0 put boot.py
127 126
@@ -177,7 +176,7 @@ boards cd cp echo exit filetype ls repl rsync
177Use Control-D (or the exit command) to exit rshell. 176Use Control-D (or the exit command) to exit rshell.
178``` 177```
179 178
180> Inside a shell `ls` will display list of files on your machine. To get list 179> Inside a shell `ls` will display list of files on your machine. To get list
181> of files on flash folder `/pyboard` is remapped inside the shell. To list files 180> of files on flash folder `/pyboard` is remapped inside the shell. To list files
182> on flash you must perform `ls /pyboard`. 181> on flash you must perform `ls /pyboard`.
183 182