NmraDcc fatal error

Hello,
I cannot compile the following programme:
Thanks for help.

#include <NmraDcc.h>


#define DCC_PIN 2 // ENTREE CC SUR ATTINY 85
#define EN 0 // EN
#define PH 1 // PHASE
#define SLEEP 3
#define LED_RED 4
#define LED_GREEN 5

NmraDcc Dcc;

bool Forward = true;


void setup() {
 
Dcc.pin(0,DCC_PIN, 0);
Dcc.init( 13, 1,CV29_ACCESSORY_DECODER ,0);
 pinMode(SLEEP, OUTPUT);
 pinMode(LED_GREEN,OUTPUT);
  pinMode(LED_RED,OUTPUT);
  
  pinMode(EN, OUTPUT);
  pinMode(PH, OUTPUT);

  digitalWrite(SLEEP,HIGH);
  digitalWrite(PH,HIGH);
  
}

void notifyDccAccTurnoutBoard( uint16_t BoardAddr, uint8_t OutputPair, uint8_t Direction, uint8_t OutputPower ) {

 if (BoardAddr==200 && Direction ==1 && Forward==true ) {
  digitalWrite(LED_GREEN,LOW);
    digitalWrite(PH,HIGH);
    analogWrite(EN,255);
    delay(250);
    analogWrite(EN,0);
     digitalWrite(PH,LOW);
    digitalWrite(LED_RED,HIGH);
    Forward=!Forward;
  }else if (BoardAddr==200 && Direction== 0 && Forward==false){
  digitalWrite(PH,LOW);
    analogWrite(EN,255);
    digitalWrite(LED_RED,LOW);
    delay(250);
    analogWrite(EN,0);
     digitalWrite(PH,HIGH);
    digitalWrite(LED_GREEN,HIGH);
    Forward=!Forward;
  }

}

void loop() {
  Dcc.process();
}

Arduino : 1.8.18 (Windows 10), Carte : "Digispark (Default - 16.5mhz)"

In file included from ....\attiny_turnout\nmradcc_attiny_turnnout200\nmradcc_attiny_turnnout200.ino:2:0:

....libraries\EEPROM-master/EEPROM.h:29:44: error: missing binary operator before token "("

#if defined(__has_include) && __has_include(<type_traits>)

                                        ^

In file included from ......\attiny_turnout\nmradcc_attiny_turnnout200\nmradcc_attiny_turnnout200.ino:2:0:

....\libraries\EEPROM-master/EEPROM.h:141:52: error: missing binary operator before token "("

     #if defined(__has_include) && __has_include(<type_traits>)

                                                ^

....\Arduino\libraries\EEPROM-master/EEPROM.h:151:52: error: missing binary operator before token "("

     #if defined(__has_include) && __has_include(<type_traits>)

exit status 1

Erreur de compilation pour la carte Digispark (Default - 16.5mhz)

Looks like you have the wrong EEPROM library, see this discussion for a link to the EEPROM.zip file for the Digistump boards package.

Thanks do you have the link of the discussion?

Oops, forgot to post the link
https://github.com/digistump/DigistumpArduino/issues/34

it works. thanks a lot

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.