Hello everyone, I am looking at to upload the skectch for an attiny85. It s working perfectly well with an arduino and a mega but for an attiny it s a fail. I got the floowing message : (I have added the library EEPROM.h but it does not work. Thanks.
Arduino : 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Carte : "Digispark (Default - 16.5mhz)"
.....C\OneDrive\Documents\Arduino\libraries\NmraDcc\NmraDcc.cpp:50:20: fatal error: EEPROM.h: No such file or directory
Arduino : 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Carte : "Digispark (Default - 16.5mhz)"
.......Desktop\nmradcc1__attiny85\nmradcc_Attiny\nmradcc_attiny.ino: In function 'void setup()':
nmradcc_attiny:22:39: error: 'digitalPinToInterrupt' was not declared in this scope
Dcc.pin(digitalPinToInterrupt(DCC_PIN),DCC_PIN, false);
exit status 1
'digitalPinToInterrupt' was not declared in this scope
Which core are you using?
I tried to compile your sketch, and it throws some warnings ( that I know from the NmraDcc lib ), but no errors.
I use the ATTinyCore.
It s working. i have taken the function gpiointerrupt off from the code and replaced by dcc.int(0,2,1)
For me the use of nmradcc is not obvious. I have somme difficulties to find out some explanations over the use of Flags.
Thankd