3D yazıcıdan Iron Man kaskı bastım elektronik aksam icin Arduino gerekiyordu Arduino hakkında hicbir bilgim yok kodları kopyalayıp yapıştırdım ama hata verdi yardımcı olabilir misiniz?
Kod:Panoya kopyala
#include "ServoEasing.h" ServoEasing servoTop; ServoEasing servoBottom; const int action_pin = 2; int location = 31; // Below numbers should be adjusted in case the facemask does not close/open to desired angle. int bottom_closed = 107; int top_closed = 167; int bottom_open = 20; int top_open = 20; void setup() void loop() else } }
Hata da şu şekilde;
Kod:Panoya kopyala
C:UserssananAppDataLocalTempcc7aVHP4.ltrans0.ltran s.o: In function `setup': C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:14: undefined reference to `ServoEasing::attach(int)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:15: undefined reference to `ServoEasing::attach(int)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:16: undefined reference to `setSpeedForAllServos(unsigned int)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:17: undefined reference to `ServoEasing::setEasingType(unsigned char)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:18: undefined reference to `ServoEasing::setEasingType(unsigned char)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:19: undefined reference to `synchronizeAllServosStartAndWaitForAllServosToSto p()' C:UserssananAppDataLocalTempcc7aVHP4.ltrans0.ltran s.o: In function `loop': C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:27: undefined reference to `ServoEasing::setEaseTo(int)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:28: undefined reference to `ServoEasing::setEaseTo(int)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:29: undefined reference to `synchronizeAllServosStartAndWaitForAllServosToSto p()' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:33: undefined reference to `ServoEasing::setEaseTo(int)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:34: undefined reference to `ServoEasing::setEaseTo(int)' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:35: undefined reference to `synchronizeAllServosStartAndWaitForAllServosToSto p()' C:UserssananAppDataLocalTempcc7aVHP4.ltrans0.ltran s.o: In function `_GLOBAL__sub_I_servoTop': C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:2: undefined reference to `ServoEasing::ServoEasing()' C:UserssananAppDataLocalTemp.arduinoIDE-unsaved2022815-10496-14xmc8y.h6d5hsketch_sep15a/sketch_sep15a.ino:3: undefined reference to `ServoEasing::ServoEasing()' collect2.exe: error: ld returned 1 exit status. exit status 1 Compilation error: exit status 1