I am a newbie to Trinket and have copied the code in the Trinket and Gemma Servo Control tutorial. I am getting a compiling error and don't know how to fix it. The message is:
Arduino: 1.6.7 (Windows 7), Board: "Adafruit Trinket 8MHz"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Owner\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Owner\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Owner\Documents\Arduino\libraries" -fqbn=adafruit:avr:trinket3 -ide-version=10607 -build-path "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Owner\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Owner\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Owner\Documents\Arduino\libraries" -fqbn=adafruit:avr:trinket3 -ide-version=10607 -build-path "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Owner\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.5\variants\tiny8" "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp\sketch\Trinket_Library__Servo_Code.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Owner\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.5\variants\tiny8" "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp\sketch\Trinket_Library__Servo_Code.ino.cpp" -o "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino:27:32: fatal error: Adafruit_SoftServo.h: No such file or directory
#include "Adafruit_SoftServo.h"
^
compilation terminated.
exit status 1
Error compiling.
Can anyone help?
Thank you!
Trinket servo compiling error
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88112
- Joined: Sat Feb 07, 2009 10:11 am
Re: Trinket servo compiling error
Have you installed the library according to the the instructions here http://learn.adafruit.com/adafruit-all- ... nstall-useC:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino:27:32: fatal error: Adafruit_SoftServo.h: No such file or directory
- Wrightjk284
- Posts: 6
- Joined: Wed Feb 03, 2016 1:52 pm
Re: Trinket servo compiling error
That worked!
I had to install the library in the right place. Thank you!
I had to install the library in the right place. Thank you!
Please be positive and constructive with your questions and comments.