Flashing with EEPROMER, Debug Mode

This commit is contained in:
Stefan Ostermann 2021-04-27 23:26:45 +02:00
parent 5a112f4004
commit 733494a902
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
# Sensor Module with 433 Mhz Sender
![fritzing](sensor_Steckplatine.png)
![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

View File

@ -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;
}
}