From ade3dd8d8eee0a48fde88d548c222d1aa33e9b76 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 13 Nov 2024 22:50:41 +0100 Subject: [PATCH] created scripts for uploading code and monitoring the mcu --- monitor.sh | 7 +++++++ upload.sh | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 monitor.sh create mode 100644 upload.sh diff --git a/monitor.sh b/monitor.sh new file mode 100644 index 0000000..167bca3 --- /dev/null +++ b/monitor.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +board="esp8266:esp8266:nodemcuv2" +port="/dev/ttyUSB0" +baudrate="9600" + +arduino-cli monitor -b $board -p $port -c $baudrate diff --git a/upload.sh b/upload.sh new file mode 100644 index 0000000..2ff03c3 --- /dev/null +++ b/upload.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +board="esp8266:esp8266:nodemcuv2" +port="/dev/ttyUSB0" + +arduino-cli compile -b $board -p $port $(pwd | rev | cut -d "/" -f 1 | rev).ino +arduino-cli upload -b $board -p $port $(pwd | rev | cut -d "/" -f 1 | rev).ino