03-08-2018, 17:05
(03-08-2018, 14:25)-adamek napisał(a): "#include <joystick.h>. Z tym sobie jakoś poradziłem. Pogooglowałem trochę, i doszedłem do wniosku, że trzeba dodać bibliotekę." Poradziłem sobie chyba nie do końca ? skąd wzięli ten joystick.h ? . Z tego foldera "ArduinoJoystickLibrary-master" trzeba skopiować "Joystick" i wkleić do folderu bibliotek ,nie używam tego systemu więc konkretnie nie podam miejsca.
Zrobiłem tak z folderem joystick, w tym moemencie kod błędu wygląda tak:
Kod:
Arduino:1.8.5 (Windows Store 1.8.10.0) (Windows 10), Płytka:"Arduino/Genuino Micro"
ARDUINO_BUTTON_BOXV2:90: error: 'Keypad' does not name a type
Keypad buttbx = Keypad( makeKeymap(buttons), rowPins, colPins, NUMROWS, NUMCOLS);
^
C:\Users\sebas\Downloads\32-FUNCTION-BUTTON-BOX-master\32-FUNCTION-BUTTON-BOX-master\ARDUINO_BUTTON_BOXV2\ARDUINO_BUTTON_BOXV2.ino: In function 'void CheckAllButtons()':
ARDUINO_BUTTON_BOXV2:110: error: 'buttbx' was not declared in this scope
if (buttbx.getKeys())
^
ARDUINO_BUTTON_BOXV2:112: error: 'LIST_MAX' was not declared in this scope
for (int i=0; i<LIST_MAX; i++)
^
ARDUINO_BUTTON_BOXV2:117: error: 'PRESSED' was not declared in this scope
case PRESSED:
^
ARDUINO_BUTTON_BOXV2:118: error: 'HOLD' was not declared in this scope
case HOLD:
^
ARDUINO_BUTTON_BOXV2:121: error: 'RELEASED' was not declared in this scope
case RELEASED:
^
ARDUINO_BUTTON_BOXV2:122: error: 'IDLE' was not declared in this scope
case IDLE:
^
exit status 1
'Keypad' does not name a type
Ten raport powinien zawierać więcej informacji jeśli w
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"