From 694a9de82b1d87019872b07dd50de34d1c56704c Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 14 Nov 2024 20:55:35 +0100 Subject: [PATCH] migrated to Wemos D1 R2 the schmoll schiet caused way too much pain --- RadiationMapper.ino | 2 +- monitor.sh | 2 +- setup.sh | 2 +- upload.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RadiationMapper.ino b/RadiationMapper.ino index 45c791c..d892460 100644 --- a/RadiationMapper.ino +++ b/RadiationMapper.ino @@ -18,7 +18,7 @@ along with this program. If not, see . #include -#define INPUT_PIN D6 //VIN PIN FOR GEIGER COUNTER +#define INPUT_PIN 14 //VIN PIN FOR GEIGER COUNTER #define MEASUREMENT_TIME_MS 60000 //MINUTE std::list counts; //COUNTS IN LAST MINUTE (OR MEASUREMENT_TIME_MS IF MODIFIED) diff --git a/monitor.sh b/monitor.sh index ef08383..032735c 100644 --- a/monitor.sh +++ b/monitor.sh @@ -1,6 +1,5 @@ #!/bin/bash -board="esp8266:esp8266:nodemcuv2" # This is part of RadiationMapping # Copyright (C) 2024 Václav Šmejkal @@ -17,6 +16,7 @@ board="esp8266:esp8266:nodemcuv2" # You should have received a copy of the GNU General Public License # along with this program. If not, see . +board="esp32:esp32:esp32" port="/dev/ttyUSB0" baudrate="9600" diff --git a/setup.sh b/setup.sh index 893cfea..d095298 100644 --- a/setup.sh +++ b/setup.sh @@ -17,4 +17,4 @@ # along with this program. If not, see . arduino-cli core update-index -arduino-cli core install --additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json esp8266:ESP8266 +arduino-cli core install --additional-urls https://dl.espressif.com/dl/package_esp32_index.json esp32:esp32 diff --git a/upload.sh b/upload.sh index 13e06d9..8a3ffa5 100644 --- a/upload.sh +++ b/upload.sh @@ -1,6 +1,5 @@ #!/bin/bash -board="esp8266:esp8266:nodemcuv2" # This is part of RadiationMapping # Copyright (C) 2024 Václav Šmejkal @@ -17,6 +16,7 @@ board="esp8266:esp8266:nodemcuv2" # You should have received a copy of the GNU General Public License # along with this program. If not, see . +board="esp32:esp32:esp32" port="/dev/ttyUSB0" arduino-cli compile -b $board -p $port $(pwd | rev | cut -d "/" -f 1 | rev).ino