|
Mi è arrivato l'Arduino Mega e la ethernet shield, ho seguito le istruzioni saltando la parte che riguarda il wifi, ma nella compilazione mi da tantissimi errori:
Arduino:1.8.5 (Windows 10), Scheda:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino:314:0:
sketch\Z21_LAN.h: In function 'void Z21LANreceive()':
Z21_LAN.h:264: error: 'notifyz21getSystemInfo' was not declared in this scope
notifyz21getSystemInfo(0); //SysInfo an alle BC Clients senden!
^
sketch\Z21_LAN.h: In function 'void notifyz21getSystemInfo(uint8_t)':
Z21_LAN.h:417: error: 'class z21Class' has no member named 'sendSystemInfo'
z21.sendSystemInfo(client, inAm, volt, temp); //report System State to z21 clients
^
sketch\Z21_LAN.h: In function 'void notifyz21CVREAD(uint8_t, uint8_t)':
Z21_LAN.h:430: error: 'class DCCPacketScheduler' has no member named 'opsReadDirectCV'
dcc.opsReadDirectCV(cvAdr); //read cv
^
sketch\Z21_LAN.h: In function 'void notifyz21CVWRITE(uint8_t, uint8_t, uint8_t)':
Z21_LAN.h:435: error: ambiguating new declaration of 'void notifyz21CVWRITE(uint8_t, uint8_t, uint8_t)'
void notifyz21CVWRITE(uint8_t cvAdrMSB, uint8_t cvAdrLSB, uint8_t value)
^
In file included from C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino:221:0:
C:\Users\Michele\Documents\Arduino\libraries\z21/z21.h:118:17: note: old declaration 'uint8_t notifyz21CVWRITE(uint8_t, uint8_t, uint8_t)'
extern uint8_t notifyz21CVWRITE(uint8_t cvAdrMSB, uint8_t cvAdrLSB, uint8_t value) __attribute__((weak));
^
In file included from C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino:314:0:
sketch\Z21_LAN.h: In function 'void notifyz21CVPOMREADBYTE(uint16_t, uint16_t)':
Z21_LAN.h:471: error: 'class DCCPacketScheduler' has no member named 'opsPOMreadCV'
dcc.opsPOMreadCV(Adr, cvAdr); //get decoder value
^
sketch\Z21_LAN.h: In function 'void notifyz21UpdateConf()':
Z21_LAN.h:500: error: 'Debug' was not declared in this scope
Debug.println("Z21 Conf: ");
^
Z21_LAN.h:502: error: 'EEPROMRailCom' was not declared in this scope
Debug.print(EEPROM.read(EEPROMRailCom), HEX);
^
Z21_LAN.h:508: error: 'EEPROMRSTsRepeat' was not declared in this scope
Debug.print(EEPROM.read(EEPROMRSTsRepeat));
^
Z21_LAN.h:510: error: 'EEPROMRSTcRepeat' was not declared in this scope
Debug.print(EEPROM.read(EEPROMRSTcRepeat));
^
Z21_LAN.h:512: error: 'EEPROMProgRepeat' was not declared in this scope
Debug.print(EEPROM.read(EEPROMProgRepeat));
^
Z21_LAN.h:518: error: 'class DCCPacketScheduler' has no member named 'loadEEPROMconfig'
dcc.loadEEPROMconfig();
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void globalPower(byte)':
Z21_Ethernet_DCC_Zentrale_v477_MSH:322: error: 'class z21Class' has no member named 'setCVNackSC'
z21.setCVNackSC(); //response SHORT while Service Mode!
^
Z21_Ethernet_DCC_Zentrale_v477_MSH:326: error: 'Debug' was not declared in this scope
Debug.print(F("Power: "));
^
Z21_Ethernet_DCC_Zentrale_v477_MSH:380: error: 'SHORT' was not declared in this scope
dcc.setpower(SHORT); //shut down via GO/STOP just for the Roco Booster
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void ShortDetection()':
Z21_Ethernet_DCC_Zentrale_v477_MSH:456: error: 'Debug' was not declared in this scope
Debug.println(F("TRACK_SHORT_CIRCUIT INT"));
^
Z21_Ethernet_DCC_Zentrale_v477_MSH:466: error: 'Debug' was not declared in this scope
Debug.print(VAmp);
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void updateLedButton()':
Z21_Ethernet_DCC_Zentrale_v477_MSH:487: error: 'Debug' was not declared in this scope
Debug.print(F("Button "));
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void notifyTrnt(uint16_t, bool)':
Z21_Ethernet_DCC_Zentrale_v477_MSH:684: error: 'Debug' was not declared in this scope
Debug.print(F("DCC Trnt "));
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void notifyCVVerify(uint16_t, uint8_t)':
Z21_Ethernet_DCC_Zentrale_v477_MSH:694: error: 'class z21Class' has no member named 'setCVReturn'
z21.setCVReturn (CV, value);
^
Z21_Ethernet_DCC_Zentrale_v477_MSH:696: error: 'Debug' was not declared in this scope
Debug.print(F("Loco CV#"));
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void notifyCVNack()':
Z21_Ethernet_DCC_Zentrale_v477_MSH:706: error: 'class z21Class' has no member named 'setCVNack'
z21.setCVNack(); //send back to device and stop programming!
^
Z21_Ethernet_DCC_Zentrale_v477_MSH:708: error: 'Debug' was not declared in this scope
Debug.println("CV# no ACK");
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void setup()':
Z21_Ethernet_DCC_Zentrale_v477_MSH:773: error: no matching function for call to 'DCCPacketScheduler::setup(int, int, int)'
dcc.setup(DCCPin, 0, SwitchFormat); //no NDCC and no RAILCOM
^
C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino:773:40: note: candidate is:
In file included from C:\Users\Michele\Desktop\z21\Z21_Ethernet_DCC_Zentrale_v477_MSH\Z21_Ethernet_DCC_Zentrale_v477_MSH.ino:189:0:
C:\Users\Michele\Documents\Arduino\libraries\DCCInterfaceMaster/DCCPacketScheduler.h:89:7: note: void DCCPacketScheduler::setup(uint8_t, uint8_t)
void setup(uint8_t pin = 6, uint8_t format = ROCO); //for any post-constructor initialization
^
C:\Users\Michele\Documents\Arduino\libraries\DCCInterfaceMaster/DCCPacketScheduler.h:89:7: note: candidate expects 2 arguments, 3 provided
Z21_Ethernet_DCC_Zentrale_v477_MSH:777: error: 'class DCCPacketScheduler' has no member named 'setCurrentLoadPin'
dcc.setCurrentLoadPin(VAmpIntPin);
^
Z21_Ethernet_DCC_Zentrale_v477_MSH:787: error: 'Debug' was not declared in this scope
Debug.begin(DebugBaud);
^
Z21_Ethernet_DCC_Zentrale_v477_MSH:787: error: 'DebugBaud' was not declared in this scope
Debug.begin(DebugBaud);
^
exit status 1 'notifyz21getSystemInfo' was not declared in this scope
Questo report potrebbe essere più ricco di informazioni abilitando l'opzione "Mostra un output dettagliato durante la compilazione" in "File -> Impostazioni"
Questa la videata dell'ide:
| Allegati: |

schermata ide.jpg [ 114.58 KiB | Osservato 4906 volte ]
|
|