Flashing with EEPROMER, Debug Mode
This commit is contained in:
parent
5a112f4004
commit
733494a902
|
|
@ -1,3 +1,6 @@
|
||||||
# Sensor Module with 433 Mhz Sender
|
# Sensor Module with 433 Mhz Sender
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
# flash attiny with minipro on linux and the TL866II plus after compiling:
|
||||||
|
minipro -p attiny85 -w .pio/build/attiny85/firmware.hex
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
#define WATCHDOG_WAKEUP 9
|
#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
|
// 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
|
// pins for the radio hardware
|
||||||
#define RH_RX_PIN 6 // not used, set to a non-existent pin
|
#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++)
|
for (uint8_t i = 0; i < WATCHDOG_SLEEP_FURTHER; i++)
|
||||||
{
|
{
|
||||||
system_sleep();
|
system_sleep();
|
||||||
// if first loop sleep less long:
|
// if one of the first loops sleep less long for easyier debugging:
|
||||||
if (counter==1) {
|
if (counter<10) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue