exit status 1

Ciao,

sto riscontrando un problema con le librerie, sto usando un arduino/genuino micro, la mia versione dell’ide è 1.8.19.0, la libreria che sto usando è robot.h che allego qui sotto, ho incluso la libreria tramite Sketch->#includi libreria-> aggiungi libreria da file .Zip
come posso risolvere questa serie di “was not declared in this scope” ?

grazie anticipatamente per il tempo impiegato

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Motor.cpp: In member function ‘void Motor::CAPT_ISR(uint8_t)’:

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Motor.cpp:159:9: error: ‘TCCR3B’ was not declared in this scope

TCCR3B &= ~(1 << ICES3);

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Motor.cpp:159:26: error: ‘ICES3’ was not declared in this scope

TCCR3B &= ~(1 << ICES3);

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp: In constructor ‘Robot::Robot()’:

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:41:5: error: ‘Serial1’ was not declared in this scope

Serial1.begin(115200);

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp: In member function ‘void Robot::beep(int16_t, int16_t)’:

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:61:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

while (micros() < tStart + (int32_t)duration * 1000)

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp: In member function ‘void Robot::setupEncoders()’:

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:114:5: error: ‘TCCR3A’ was not declared in this scope

TCCR3A = 0;

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:115:5: error: ‘TCCR3B’ was not declared in this scope

TCCR3B = (0 << ICNC3) | (1 << ICES3) | (1 << CS31);

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:115:20: error: ‘ICNC3’ was not declared in this scope

TCCR3B = (0 << ICNC3) | (1 << ICES3) | (1 << CS31);

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:115:35: error: ‘ICES3’ was not declared in this scope

TCCR3B = (0 << ICNC3) | (1 << ICES3) | (1 << CS31);

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:115:50: error: ‘CS31’ was not declared in this scope

TCCR3B = (0 << ICNC3) | (1 << ICES3) | (1 << CS31);

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:116:5: error: ‘TCCR3C’ was not declared in this scope

TCCR3C = 0;

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:117:5: error: ‘TIFR3’ was not declared in this scope

TIFR3 = (1 << ICF3); // clear pending

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:117:19: error: ‘ICF3’ was not declared in this scope

TIFR3 = (1 << ICF3); // clear pending

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:118:5: error: ‘TIMSK3’ was not declared in this scope

TIMSK3 = (1 << ICIE3) | (1 << TOIE3); // and enable

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:118:20: error: ‘ICIE3’ was not declared in this scope

TIMSK3 = (1 << ICIE3) | (1 << TOIE3); // and enable

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:118:35: error: ‘TOIE3’ was not declared in this scope

TIMSK3 = (1 << ICIE3) | (1 << TOIE3); // and enable

^

In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,

from C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.h:4,

from C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:1:

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp: In function ‘void TIMER3_CAPT_vect()’:

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:128:5: warning: ‘TIMER3_CAPT_vect’ appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]

ISR(TIMER3_CAPT_vect)

^

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp: In function ‘void TIMER3_OVF_vect()’:

C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot\Robot.cpp:138:5: warning: ‘TIMER3_OVF_vect’ appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]

ISR(TIMER3_OVF_vect)

^

Uso la libreria Robot nella cartella: C:\Users\filog\OneDrive\Documents\Arduino\libraries\Robot (legacy)
Uso la libreria Wire alla versione 1.0 nella cartella: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\Wire
Uso la libreria SPI alla versione 1.0 nella cartella: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\SPI
exit status 1
Errore durante la compilazione per la scheda Arduino/Genuino Uno.

Robot.zip (37.6 KB)

Buongiorno,
essendo il tuo primo post, nel rispetto del regolamento della sezione Italiana del forum (… punto 13, primo capoverso), ti chiedo cortesemente di presentarti IN QUESTO THREAD (spiegando bene quali conoscenze hai di elettronica e di programmazione ... possibilmente evitando di scrivere solo una riga di saluto) e di leggere con MOLTA attenzione il su citato REGOLAMENTO ... Grazie. :slight_smile:

Guglielmo

P.S.: Ti ricordo che, fino a quando non sarà fatta la presentazione, nessuno ti potrà rispondere, quindi ti consiglio di farla al più presto. :wink: