firmware wip - change pwm freq to 13.37KHz, add xxd to ./cangrow setup

This commit is contained in:
Marcus 2024-07-30 19:40:36 +02:00
parent 6554c0ae0a
commit 7a5baf009b
3 changed files with 4 additions and 4 deletions

View file

@ -79,8 +79,8 @@ void setup() {
// PINsoilmoisture is always HIGH and gets LOW in moment of waterlevel measurement // PINsoilmoisture is always HIGH and gets LOW in moment of waterlevel measurement
digitalWrite(PINsoilmoisture, LOW); digitalWrite(PINsoilmoisture, LOW);
// set PWM frequency to 2.2KHz // set PWM frequency to 13.37KHz
analogWriteFreq(2200); analogWriteFreq(13370);
// Start EEPROM // Start EEPROM
EEPROM.begin(512); EEPROM.begin(512);

View file

@ -1,5 +1,5 @@
/* CanGrow_Version.h gets generated from cangrow.sh */ /* CanGrow_Version.h gets generated from cangrow.sh */
const char* CanGrowVer = "0.1-dev"; const char* CanGrowVer = "0.1-dev";
const char* CanGrowBuild = "806aa2d-20240617022728"; const char* CanGrowBuild = "6554c0a-20240728025133";

View file

@ -44,7 +44,7 @@ case $1 in
echo "" echo ""
echo ":: Installing Arduino IDE packages with apt, please enter sudo password:" echo ":: Installing Arduino IDE packages with apt, please enter sudo password:"
sudo apt update 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" echo ":: Ensure directory ${ACLI_DIR} is present"
test -d ${ACLI_DIR} || mkdir -p ${ACLI_DIR} test -d ${ACLI_DIR} || mkdir -p ${ACLI_DIR}
echo ":: Please ensure ${ACLI_DIR} is in your \$PATH, I wont do it." echo ":: Please ensure ${ACLI_DIR} is in your \$PATH, I wont do it."