Help compiling Trinket Volume Knob

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
davelawrence
 
Posts: 8
Joined: Thu Jul 02, 2015 11:57 am

Help compiling Trinket Volume Knob

Post by davelawrence »

Hi!

Please can someone help me with compiling the Trinket Volume knob example?

I'm following the tutorial at https://learn.adafruit.com/trinket-usb-volume-knob

I've installed the Adafruit-Trinket-USB-master.zip and it's appeared in the Library list and the examples
but on 'compile' I get

Code: Select all

encoder.ino:2:29: fatal error: TrinketHidCombo.h: No such file or directory
with verbose compilation on I can see the compile command as follows:

Code: Select all

/home/files/arduino-1.6.4/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10604 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR -I/home/files/arduino-1.6.4/hardware/arduino/avr/cores/arduino -I/home/files/arduino-1.6.4/hardware/adafruit/avr/variants/tiny8 /tmp/build3143759806503082247.tmp/encoder.cpp -o /tmp/build3143759806503082247.tmp/encoder.cpp.o
with no obvious "-I" argument to point to the library directory. If I add one in by hand the code does compile.

What am I missing?

[build environment is ubuntu/precise]

Thank you,

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Help compiling Trinket Volume Knob

Post by adafruit_support_rick »

You've probably left the master folder at the top level. You need to pull the individual library folders out of the master folder and install those separately. Just drag them out of the master folder to the top level of your libraries folder.

User avatar
davelawrence
 
Posts: 8
Joined: Thu Jul 02, 2015 11:57 am

Re: Help compiling Trinket Volume Knob

Post by davelawrence »

Hi,

Ah! that's fixed it. I'd just assumed I could install the .ZIP

could a note be added on the page to clarify this?

https://learn.adafruit.com/adafruit-all ... nstall-use

and maybe a readme in the .zip?

Thank you for your help getting me going,

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Help compiling Trinket Volume Knob

Post by adafruit_support_rick »

Yes, there should be something in the readme about it. I was surprised to not see that. I'll see if I can fix it.

User avatar
davelawrence
 
Posts: 8
Joined: Thu Jul 02, 2015 11:57 am

Re: Help compiling Trinket Volume Knob

Post by davelawrence »

Hi,

Just seen your readme -- perfect!

Thanks ahain,

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”