diff --git a/RadiationMapper.ino b/RadiationMapper.ino index d892460..0284bd6 100644 --- a/RadiationMapper.ino +++ b/RadiationMapper.ino @@ -18,7 +18,8 @@ along with this program. If not, see . #include -#define INPUT_PIN 14 //VIN PIN FOR GEIGER COUNTER + +#define INPUT_PIN 10 //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 032735c..66b7338 100644 --- a/monitor.sh +++ b/monitor.sh @@ -16,8 +16,8 @@ # 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" +board="esp32:esp32:esp32c3" +port="/dev/ttyACM0" baudrate="9600" -arduino-cli monitor -b $board -p $port -c $baudrate +arduino-cli monitor -b $board -p $port -c $baudrate --timestamp diff --git a/setup.sh b/setup.sh index d095298..1775b65 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 https://dl.espressif.com/dl/package_esp32_index.json esp32:esp32 +arduino-cli core install --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json esp32:esp32 diff --git a/upload.sh b/upload.sh index 8a3ffa5..2c025d1 100644 --- a/upload.sh +++ b/upload.sh @@ -16,8 +16,8 @@ # 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" +board="esp32:esp32:esp32c3" +port="/dev/ttyACM0" 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