jscrane / TinySensors

Environmental sensors with ATtiny84, nrf24l01+ and Raspberry Pi
8 stars 5 forks source link

EEMEM #3

Closed jscrane closed 5 years ago

jscrane commented 5 years ago
#include <avr/eeprom.h>

#if defined(NODE_ID)
uint8_t eeprom[] EEMEM = {NODE_ID};
#endif

Could maybe use this trick for retries too?