LED matrix pendant required libraries

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mini39
 
Posts: 32
Joined: Fri Mar 18, 2011 9:46 am

LED matrix pendant required libraries

Post by mini39 »

Hi there.
I am building the LED matrix Space Invader pendant and can't figure out where or how to get the avr/sleep.h and avr/power.h files? Are they built in. I must be looking for the wrong thing, not sure. The code is not compiling and neither of those .h files change color to indicate their presence.

Here is the error I get:
spaceInvader.ino: In function 'void setup()':
spaceInvader:48: error: 'PCMSK' was not declared in this scope
spaceInvader.ino: In function 'void loop()':
spaceInvader:73: error: 'GIMSK' was not declared in this scope
spaceInvader:73: error: 'PCIE' was not declared in this scope
spaceInvader:83: error: 'power_usi_enable' was not declared in this scope



Do I need to copy them from the avr library code to a tab, and change the name to avr_sleep.h for instance? That seems crazy complicated for me not to find any info on this on the web...

Thanks for any help. I am guessing I am missing something obvious here.
John

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: LED matrix pendant required libraries

Post by Franklin97355 »

Those are core libraries and are part of the Arduino IDE install. Make sure you have the correct board selected in tools menu, that looks like the errors you get when you don't.

User avatar
mini39
 
Posts: 32
Joined: Fri Mar 18, 2011 9:46 am

Re: LED matrix pendant required libraries

Post by mini39 »

Thank you, I figured that out about five minutes after I sent my question. Kind of a duh.

I appreciate your time.
John

User avatar
charlietakethetrench
 
Posts: 1
Joined: Wed Jun 08, 2016 9:27 am

Re: LED matrix pendant required libraries

Post by charlietakethetrench »

thanks for asking the question, saved my butt as a complete arduino noob lol

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

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”