Hallo,
so wie bereits im Titel geschrieben, baue ich gerade ein Projekt nach.
Allerdings habe ich einige Fehler wenn ich versuche den Sketch hochzuladen.
Sketch: puzzle-box/Arduino/Puzzle_Box at master · rcalme/puzzle-box · GitHub
Ich habe mir die neueste Arduino IDE 1.8.6 heruntergeladen, kann es evtl. daran liegen das der Sketch mit einer älteren Version erstellt wurde?
Puzzle_Box:162:16: error: variable or field 'moveServo' declared void
void moveServo(servo, position, minVal, maxVal) {
^
Puzzle_Box:162:16: error: 'servo' was not declared in this scope
Puzzle_Box:162:23: error: 'position' was not declared in this scope
void moveServo(servo, position, minVal, maxVal) {
^
Puzzle_Box:162:33: error: 'minVal' was not declared in this scope
void moveServo(servo, position, minVal, maxVal) {
^
Puzzle_Box:162:41: error: 'maxVal' was not declared in this scope
void moveServo(servo, position, minVal, maxVal) {
^
Puzzle_Box:162:16: error: variable or field 'moveServo' declared void
void moveServo(servo, position, minVal, maxVal) {
^
Puzzle_Box:162:16: error: 'servo' was not declared in this scope
Puzzle_Box:162:23: error: 'position' was not declared in this scope
void moveServo(servo, position, minVal, maxVal) {
^
Puzzle_Box:162:33: error: 'minVal' was not declared in this scope
void moveServo(servo, position, minVal, maxVal) {
^
Puzzle_Box:162:41: error: 'maxVal' was not declared in this scope
void moveServo(servo, position, minVal, maxVal) {
^
C:\Users\Seba\Desktop\puzzle-box-master\Arduino\Puzzle_Box\Puzzle_Box.ino: In function 'void openRightDrawer()':
Puzzle_Box:172:54: error: 'moveServo' was not declared in this scope
moveServo(rightDrawerServo, 180, rightMin, rightMax);
^
C:\Users\Seba\Desktop\puzzle-box-master\Arduino\Puzzle_Box\Puzzle_Box.ino: In function 'void closeRightDrawer()':
Puzzle_Box:177:54: error: 'moveServo' was not declared in this scope
moveServo(rightDrawerServo, 130, rightMin, rightMax);
^
C:\Users\Seba\Desktop\puzzle-box-master\Arduino\Puzzle_Box\Puzzle_Box.ino: In function 'void openKeyDrawer()':
Puzzle_Box:183:48: error: 'moveServo' was not declared in this scope
moveServo(keyDrawerServo, 180, keyMin, keyMax);
^
sketch\PegBoard.cpp: In function 'Connection scanPins()':
PegBoard.cpp:25:26: error: 'pegCount' was not declared in this scope
for (byte in=0; in<pegCount; in++) {
^
PegBoard.cpp:26:22: error: 'startProbe' was not declared in this scope
startProbe(in);
^
PegBoard.cpp:33:28: error: 'pegPins' was not declared in this scope
if (!digitalRead(pegPins[out])) {
^
PegBoard.cpp:35:25: error: 'stopProbe' was not declared in this scope
stopProbe(in);
^
PegBoard.cpp:40:21: error: 'stopProbe' was not declared in this scope
stopProbe(in);
^
sketch\PegBoard.cpp: In function 'void startProbe(byte)':
PegBoard.cpp:48:13: error: 'pegPins' was not declared in this scope
pinMode(pegPins[in],OUTPUT);
^
sketch\PegBoard.cpp: In function 'void stopProbe(byte)':
PegBoard.cpp:55:18: error: 'pegPins' was not declared in this scope
digitalWrite(pegPins[in],HIGH);
^
sketch\PegBoard.cpp: In function 'boolean hasNewConnection()':
PegBoard.cpp:69:28: error: 'lastConn' was not declared in this scope
if( currentConn == lastConn ) {
^
sketch\PegBoard.cpp: In function 'Connection getConnection()':
PegBoard.cpp:85:12: error: 'lastConn' was not declared in this scope
return lastConn;
^
C:\Users\Seba\Desktop\puzzle-box-master\Arduino\Puzzle_Box\Puzzle_Box.ino: In function 'void closeKeyDrawer()':
Puzzle_Box:188:46: error: 'moveServo' was not declared in this scope
moveServo(keyDrawerServo, 0, keyMin, keyMax);
^
exit status 1
variable or field 'moveServo' declared void