From 38f6e49d0011a3885ab12b318b9f12f9cdd1989e Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 25 Oct 2022 13:19:26 +0200 Subject: [PATCH] Add USB port to readme --- code/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/README.md b/code/README.md index 63483297..0eb5cac4 100644 --- a/code/README.md +++ b/code/README.md @@ -18,16 +18,14 @@ platformio run --environment esp32cam ### Upload ``` -pio run --target upload +pio run --target upload --upload-port /dev/ttyUSB0 ``` -If it doesnt find the device: -1. make sure it is in bootloader mode -1. set the UART device correctly: In `platformio.ini`, set `upload_port` correctly, eg. `upload_port = /dev/ttyUSB0` +Alternatively you also can set the UART device in `platformio.ini`, eg. `upload_port = /dev/ttyUSB0` ### Monitor UART Log ``` -pio device monitor +pio device monitor -p /dev/ttyUSB0 ``` ## Build and Flash with Visual Code IDE