Skocz do zawartości

Błąd kompilacji dla płytki Arduino Leonardo


LittleKing

Pomocna odpowiedź

In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:50: error: 'PCMSK1' was not declared in this scope
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                  ^~~~~~
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:50: note: suggested alternative: 'PCMSK0'
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                  ^~~~~~
                                                  PCMSK0
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:59: error: 'PCMSK2' was not declared in this scope
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                           ^~~~~~
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:59: note: suggested alternative: 'PCMSK0'
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                           ^~~~~~
                                                           PCMSK0
In file included from C:\Users\Piotrek\Downloads\arduino-1.8.15-windows\arduino-1.8.15\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
                 from sketch\Kontroler_akt.ino.cpp:1:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void PCINT1_vect()':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:107:8: warning: 'PCINT1_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 SIGNAL(PCINT1_vect) {
        ^
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void PCINT2_vect()':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:110:8: warning: 'PCINT2_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 SIGNAL(PCINT2_vect) {
        ^
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:79:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: At global scope:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:34: error: redefinition of 'volatile uint8_t* port_to_pcmask []'
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                  ^
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:19: note: 'volatile uint8_t* port_to_pcmask [1]' previously defined here
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                   ^~~~~~~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:79:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:50: error: 'PCMSK1' was not declared in this scope
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                  ^~~~~~
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:50: note: suggested alternative: 'PCMSK0'
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                  ^~~~~~
                                                  PCMSK0
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:59: error: 'PCMSK2' was not declared in this scope
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                           ^~~~~~
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:3:59: note: suggested alternative: 'PCMSK0'
 volatile uint8_t *port_to_pcmask[] = { &PCMSK0, &PCMSK1, &PCMSK2 };
                                                           ^~~~~~
                                                           PCMSK0
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:5:24: error: redefinition of 'int PCintMode [24]'
 static int PCintMode[24];
                        ^
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:5:12: note: 'int PCintMode [24]' previously declared here
 static int PCintMode[24];
            ^~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:79:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:9:41: error: redefinition of 'void (* volatile PCintFunc [24])()'
 volatile static voidFuncPtr PCintFunc[24] = { NULL };
                                         ^
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:9:29: note: 'void (* volatile PCintFunc [24])()' previously defined here
 volatile static voidFuncPtr PCintFunc[24] = { NULL };
                             ^~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:79:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:11:36: error: redefinition of 'volatile uint8_t PCintLast [3]'
 volatile static uint8_t PCintLast[3];
                                    ^
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:11:25: note: 'volatile uint8_t PCintLast [3]' previously declared here
 volatile static uint8_t PCintLast[3];
                         ^~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:79:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void PCattachInterrupt(uint8_t, void (*)(), int)':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:16:6: error: redefinition of 'void PCattachInterrupt(uint8_t, void (*)(), int)'
 void PCattachInterrupt(uint8_t pin, void (*userFunc)(void), int mode) {
      ^~~~~~~~~~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:16:6: note: 'void PCattachInterrupt(uint8_t, void (*)(), int)' previously defined here
 void PCattachInterrupt(uint8_t pin, void (*userFunc)(void), int mode) {
      ^~~~~~~~~~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:79:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void PCdetachInterrupt(uint8_t)':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:50:6: error: redefinition of 'void PCdetachInterrupt(uint8_t)'
 void PCdetachInterrupt(uint8_t pin) {
      ^~~~~~~~~~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:50:6: note: 'void PCdetachInterrupt(uint8_t)' previously defined here
 void PCdetachInterrupt(uint8_t pin) {
      ^~~~~~~~~~~~~~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:79:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void PCint(uint8_t)':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:73:13: error: redefinition of 'void PCint(uint8_t)'
 static void PCint(uint8_t port) {
             ^~~~~
In file included from C:\Users\Piotrek\Documents\Arduino\Kontroler_akt\Kontroler_akt.ino:2:0:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:73:13: note: 'void PCint(uint8_t)' previously defined here
 static void PCint(uint8_t port) {
             ^~~~~
In file included from C:\Users\Piotrek\Downloads\arduino-1.8.15-windows\arduino-1.8.15\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
                 from sketch\Kontroler_akt.ino.cpp:1:
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void __vector_9()':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:104:8: error: redefinition of 'void __vector_9()'
 SIGNAL(PCINT0_vect) {
        ^
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:104:8: note: 'void __vector_9()' previously defined here
 SIGNAL(PCINT0_vect) {
        ^
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void PCINT1_vect()':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:107:8: error: redefinition of 'void PCINT1_vect()'
 SIGNAL(PCINT1_vect) {
        ^
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:107:8: note: 'void PCINT1_vect()' previously defined here
 SIGNAL(PCINT1_vect) {
        ^
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h: In function 'void PCINT2_vect()':
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:110:8: error: redefinition of 'void PCINT2_vect()'
 SIGNAL(PCINT2_vect) {
        ^
C:\Users\Piotrek\Documents\Arduino\libraries\PCF8574/PCint.h:110:8: note: 'void PCINT2_vect()' previously defined here
 SIGNAL(PCINT2_vect) {
        ^
exit status 1
Błąd kompilacji dla płytki Arduino Leonardo.
Podpowie mi ktoś o co tu chodzi?

Link do komentarza
Share on other sites

Bądź aktywny - zaloguj się lub utwórz konto!

Tylko zarejestrowani użytkownicy mogą komentować zawartość tej strony

Utwórz konto w ~20 sekund!

Zarejestruj nowe konto, to proste!

Zarejestruj się »

Zaloguj się

Posiadasz własne konto? Użyj go!

Zaloguj się »
×
×
  • Utwórz nowe...

Ważne informacje

Ta strona używa ciasteczek (cookies), dzięki którym może działać lepiej. Więcej na ten temat znajdziesz w Polityce Prywatności.