From 7a5baf009b118c13946c0a1ae757a472493a89a2 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 30 Jul 2024 19:40:36 +0200 Subject: [PATCH] firmware wip - change pwm freq to 13.37KHz, add xxd to ./cangrow setup --- Arduino/CanGrow/CanGrow.ino | 4 ++-- Arduino/CanGrow/CanGrow_Version.h | 2 +- cangrow.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 200e578..9a8ef1d 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -79,8 +79,8 @@ void setup() { // PINsoilmoisture is always HIGH and gets LOW in moment of waterlevel measurement digitalWrite(PINsoilmoisture, LOW); - // set PWM frequency to 2.2KHz - analogWriteFreq(2200); + // set PWM frequency to 13.37KHz + analogWriteFreq(13370); // Start EEPROM EEPROM.begin(512); diff --git a/Arduino/CanGrow/CanGrow_Version.h b/Arduino/CanGrow/CanGrow_Version.h index 31691b1..27c6918 100644 --- a/Arduino/CanGrow/CanGrow_Version.h +++ b/Arduino/CanGrow/CanGrow_Version.h @@ -1,5 +1,5 @@ /* CanGrow_Version.h gets generated from cangrow.sh */ const char* CanGrowVer = "0.1-dev"; -const char* CanGrowBuild = "806aa2d-20240617022728"; +const char* CanGrowBuild = "6554c0a-20240728025133"; diff --git a/cangrow.sh b/cangrow.sh index 412a6da..47fa178 100755 --- a/cangrow.sh +++ b/cangrow.sh @@ -44,7 +44,7 @@ case $1 in echo "" echo ":: Installing Arduino IDE packages with apt, please enter sudo password:" sudo apt update - sudo apt install arduino python3 wget curl + sudo apt install arduino python3 wget curl xxd echo ":: Ensure directory ${ACLI_DIR} is present" test -d ${ACLI_DIR} || mkdir -p ${ACLI_DIR} echo ":: Please ensure ${ACLI_DIR} is in your \$PATH, I wont do it."