From 733494a90202f1807eb6f7033e9c4401f88ca068 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Tue, 27 Apr 2021 23:26:45 +0200 Subject: [PATCH] Flashing with EEPROMER, Debug Mode --- sensor433/README.md | 5 ++++- sensor433/src/main.cpp | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sensor433/README.md b/sensor433/README.md index 696c84a..f5bde8b 100644 --- a/sensor433/README.md +++ b/sensor433/README.md @@ -1,3 +1,6 @@ # Sensor Module with 433 Mhz Sender -![fritzing](sensor_Steckplatine.png) \ No newline at end of file +![fritzing](sensor_Steckplatine.png) + +# flash attiny with minipro on linux and the TL866II plus after compiling: + minipro -p attiny85 -w .pio/build/attiny85/firmware.hex \ No newline at end of file diff --git a/sensor433/src/main.cpp b/sensor433/src/main.cpp index 6111899..e575fce 100644 --- a/sensor433/src/main.cpp +++ b/sensor433/src/main.cpp @@ -33,7 +33,7 @@ #define WATCHDOG_WAKEUP 9 // Sleep this many again before waging up. Sleep time in s = WATCHDOG_WAKEUP s * WATCHDOG_SLEEP_FURTHER, e.g. 8*8s = 64s -#define WATCHDOG_SLEEP_FURTHER 4 +#define WATCHDOG_SLEEP_FURTHER 8 // pins for the radio hardware #define RH_RX_PIN 6 // not used, set to a non-existent pin @@ -177,8 +177,8 @@ void loop() for (uint8_t i = 0; i < WATCHDOG_SLEEP_FURTHER; i++) { system_sleep(); - // if first loop sleep less long: - if (counter==1) { + // if one of the first loops sleep less long for easyier debugging: + if (counter<10) { break; } }