Open maddog5683 opened 9 years ago
Seems reasonable, I think all of the libraries I use support the Pro Trinket. I don't have one or I'd try it. Let me know if you have any problems and I'll see if I can help.
When I load the sketch and try to verify it I get a ton of errors. I have pasted the output of the verify command below. Any help I can get would be awesome. I am a newbie when it comes to Arduino.
APA102_Teensy_IR:21: error: 'AudioInputAnalog' does not name a type APA102_Teensy_IR:22: error: 'AudioAnalyzeFFT256' does not name a type APA102_Teensy_IR:23: error: 'AudioConnection' does not name a type APA102_Teensy_IR:30: error: 'IRrecv' does not name a type In file included from APA102_Teensy_IR.ino:34: Commands.h:31: error: expected identifier before 'class' Commands.h:32: error: ISO C++ forbids declaration of 'None' with no type Commands.h:33: error: ISO C++ forbids declaration of 'Up' with no type Commands.h:34: error: ISO C++ forbids declaration of 'Down' with no type Commands.h:35: error: ISO C++ forbids declaration of 'Left' with no type Commands.h:36: error: ISO C++ forbids declaration of 'Right' with no type Commands.h:37: error: ISO C++ forbids declaration of 'Select' with no type Commands.h:38: error: ISO C++ forbids declaration of 'Brightness' with no type Commands.h:39: error: ISO C++ forbids declaration of 'PlayMode' with no type Commands.h:40: error: ISO C++ forbids declaration of 'Palette' with no type Commands.h:41: error: ISO C++ forbids declaration of 'Power' with no type Commands.h:42: error: ISO C++ forbids declaration of 'BrightnessUp' with no type Commands.h:43: error: ISO C++ forbids declaration of 'BrightnessDown' with no type Commands.h:45: error: ISO C++ forbids declaration of 'Pattern1' with no type Commands.h:46: error: ISO C++ forbids declaration of 'Pattern2' with no type Commands.h:47: error: ISO C++ forbids declaration of 'Pattern3' with no type Commands.h:48: error: ISO C++ forbids declaration of 'Pattern4' with no type Commands.h:49: error: ISO C++ forbids declaration of 'Pattern5' with no type Commands.h:50: error: ISO C++ forbids declaration of 'Pattern6' with no type Commands.h:51: error: ISO C++ forbids declaration of 'Pattern7' with no type Commands.h:52: error: ISO C++ forbids declaration of 'Pattern8' with no type Commands.h:53: error: ISO C++ forbids declaration of 'Pattern9' with no type Commands.h:54: error: ISO C++ forbids declaration of 'Pattern10' with no type Commands.h:55: error: ISO C++ forbids declaration of 'Pattern11' with no type Commands.h:56: error: ISO C++ forbids declaration of 'Pattern12' with no type Commands.h:58: error: ISO C++ forbids declaration of 'RedUp' with no type Commands.h:59: error: ISO C++ forbids declaration of 'RedDown' with no type Commands.h:60: error: ISO C++ forbids declaration of 'GreenUp' with no type Commands.h:61: error: ISO C++ forbids declaration of 'GreenDown' with no type Commands.h:62: error: ISO C++ forbids declaration of 'BlueUp' with no type Commands.h:63: error: ISO C++ forbids declaration of 'BlueDown' with no type Commands.h:65: error: ISO C++ forbids declaration of 'Red' with no type Commands.h:66: error: ISO C++ forbids declaration of 'RedOrange' with no type Commands.h:67: error: ISO C++ forbids declaration of 'Orange' with no type Commands.h:68: error: ISO C++ forbids declaration of 'YellowOrange' with no type Commands.h:69: error: ISO C++ forbids declaration of 'Yellow' with no type Commands.h:71: error: ISO C++ forbids declaration of 'Green' with no type Commands.h:72: error: ISO C++ forbids declaration of 'Lime' with no type Commands.h:73: error: ISO C++ forbids declaration of 'Aqua' with no type Commands.h:74: error: ISO C++ forbids declaration of 'Teal' with no type Commands.h:75: error: ISO C++ forbids declaration of 'Navy' with no type Commands.h:77: error: ISO C++ forbids declaration of 'Blue' with no type Commands.h:78: error: ISO C++ forbids declaration of 'RoyalBlue' with no type Commands.h:79: error: ISO C++ forbids declaration of 'Purple' with no type Commands.h:80: error: ISO C++ forbids declaration of 'Indigo' with no type Commands.h:81: error: ISO C++ forbids declaration of 'Magenta' with no type Commands.h:83: error: ISO C++ forbids declaration of 'White' with no type Commands.h:84: error: ISO C++ forbids declaration of 'Pink' with no type Commands.h:85: error: ISO C++ forbids declaration of 'LightPink' with no type Commands.h:86: error: ISO C++ forbids declaration of 'BabyBlue' with no type Commands.h:87: error: ISO C++ forbids declaration of 'LightBlue' with no type Commands.h:88: error: expected unqualified-id before '}' token Commands.h:88: error: multiple types in one declaration /Commands.h: In function 'long unsigned int decodeIRCode()': Commands.h:191: error: 'decode_results' was not declared in this scope Commands.h:191: error: expected `;' before 'results' Commands.h:193: error: 'results' was not declared in this scope Commands.h:196: error: 'irReceiver' was not declared in this scope /Commands.h: In function 'InputCommand getCommand(long unsigned int)': Commands.h:33: error: 'int InputCommand::Up' is private Commands.h:322: error: within this context Commands.h:33: error: invalid use of non-static data member 'InputCommand::Up' Commands.h:322: error: from this location Commands.h:34: error: 'int InputCommand::Down' is private Commands.h:325: error: within this context Commands.h:34: error: invalid use of non-static data member 'InputCommand::Down' Commands.h:325: error: from this location Commands.h:35: error: 'int InputCommand::Left' is private Commands.h:328: error: within this context Commands.h:35: error: invalid use of non-static data member 'InputCommand::Left' Commands.h:328: error: from this location Commands.h:36: error: 'int InputCommand::Right' is private Commands.h:331: error: within this context Commands.h:36: error: invalid use of non-static data member 'InputCommand::Right' Commands.h:331: error: from this location Commands.h:37: error: 'int InputCommand::Select' is private Commands.h:334: error: within this context Commands.h:37: error: invalid use of non-static data member 'InputCommand::Select' Commands.h:334: error: from this location Commands.h:39: error: 'int InputCommand::PlayMode' is private Commands.h:338: error: within this context Commands.h:39: error: invalid use of non-static data member 'InputCommand::PlayMode' Commands.h:338: error: from this location Commands.h:40: error: 'int InputCommand::Palette' is private Commands.h:341: error: within this context Commands.h:40: error: invalid use of non-static data member 'InputCommand::Palette' Commands.h:341: error: from this location Commands.h:41: error: 'int InputCommand::Power' is private Commands.h:344: error: within this context Commands.h:41: error: invalid use of non-static data member 'InputCommand::Power' Commands.h:344: error: from this location Commands.h:42: error: 'int InputCommand::BrightnessUp' is private Commands.h:347: error: within this context Commands.h:42: error: invalid use of non-static data member 'InputCommand::BrightnessUp' Commands.h:347: error: from this location Commands.h:43: error: 'int InputCommand::BrightnessDown' is private Commands.h:350: error: within this context Commands.h:43: error: invalid use of non-static data member 'InputCommand::BrightnessDown' Commands.h:350: error: from this location Commands.h:33: error: 'int InputCommand::Up' is private Commands.h:357: error: within this context Commands.h:33: error: invalid use of non-static data member 'InputCommand::Up' Commands.h:357: error: from this location Commands.h:34: error: 'int InputCommand::Down' is private Commands.h:360: error: within this context Commands.h:34: error: invalid use of non-static data member 'InputCommand::Down' Commands.h:360: error: from this location Commands.h:35: error: 'int InputCommand::Left' is private Commands.h:363: error: within this context Commands.h:35: error: invalid use of non-static data member 'InputCommand::Left' Commands.h:363: error: from this location Commands.h:36: error: 'int InputCommand::Right' is private Commands.h:366: error: within this context Commands.h:36: error: invalid use of non-static data member 'InputCommand::Right' Commands.h:366: error: from this location Commands.h:37: error: 'int InputCommand::Select' is private Commands.h:369: error: within this context Commands.h:37: error: invalid use of non-static data member 'InputCommand::Select' Commands.h:369: error: from this location Commands.h:38: error: 'int InputCommand::Brightness' is private Commands.h:372: error: within this context Commands.h:38: error: invalid use of non-static data member 'InputCommand::Brightness' Commands.h:372: error: from this location Commands.h:39: error: 'int InputCommand::PlayMode' is private Commands.h:375: error: within this context Commands.h:39: error: invalid use of non-static data member 'InputCommand::PlayMode' Commands.h:375: error: from this location Commands.h:40: error: 'int InputCommand::Palette' is private Commands.h:378: error: within this context Commands.h:40: error: invalid use of non-static data member 'InputCommand::Palette' Commands.h:378: error: from this location Commands.h:33: error: 'int InputCommand::Up' is private Commands.h:385: error: within this context Commands.h:33: error: invalid use of non-static data member 'InputCommand::Up' Commands.h:385: error: from this location Commands.h:34: error: 'int InputCommand::Down' is private Commands.h:388: error: within this context Commands.h:34: error: invalid use of non-static data member 'InputCommand::Down' Commands.h:388: error: from this location Commands.h:39: error: 'int InputCommand::PlayMode' is private Commands.h:391: error: within this context Commands.h:39: error: invalid use of non-static data member 'InputCommand::PlayMode' Commands.h:391: error: from this location Commands.h:41: error: 'int InputCommand::Power' is private Commands.h:394: error: within this context Commands.h:41: error: invalid use of non-static data member 'InputCommand::Power' Commands.h:394: error: from this location Commands.h:42: error: 'int InputCommand::BrightnessUp' is private Commands.h:397: error: within this context Commands.h:42: error: invalid use of non-static data member 'InputCommand::BrightnessUp' Commands.h:397: error: from this location Commands.h:43: error: 'int InputCommand::BrightnessDown' is private Commands.h:399: error: within this context Commands.h:43: error: invalid use of non-static data member 'InputCommand::BrightnessDown' Commands.h:399: error: from this location Commands.h:45: error: 'int InputCommand::Pattern1' is private Commands.h:402: error: within this context Commands.h:45: error: invalid use of non-static data member 'InputCommand::Pattern1' Commands.h:402: error: from this location Commands.h:46: error: 'int InputCommand::Pattern2' is private Commands.h:404: error: within this context Commands.h:46: error: invalid use of non-static data member 'InputCommand::Pattern2' Commands.h:404: error: from this location Commands.h:47: error: 'int InputCommand::Pattern3' is private Commands.h:406: error: within this context Commands.h:47: error: invalid use of non-static data member 'InputCommand::Pattern3' Commands.h:406: error: from this location Commands.h:48: error: 'int InputCommand::Pattern4' is private Commands.h:408: error: within this context Commands.h:48: error: invalid use of non-static data member 'InputCommand::Pattern4' Commands.h:408: error: from this location Commands.h:49: error: 'int InputCommand::Pattern5' is private Commands.h:410: error: within this context Commands.h:49: error: invalid use of non-static data member 'InputCommand::Pattern5' Commands.h:410: error: from this location Commands.h:50: error: 'int InputCommand::Pattern6' is private Commands.h:412: error: within this context Commands.h:50: error: invalid use of non-static data member 'InputCommand::Pattern6' Commands.h:412: error: from this location Commands.h:51: error: 'int InputCommand::Pattern7' is private Commands.h:414: error: within this context Commands.h:51: error: invalid use of non-static data member 'InputCommand::Pattern7' Commands.h:414: error: from this location Commands.h:52: error: 'int InputCommand::Pattern8' is private Commands.h:416: error: within this context Commands.h:52: error: invalid use of non-static data member 'InputCommand::Pattern8' Commands.h:416: error: from this location Commands.h:53: error: 'int InputCommand::Pattern9' is private Commands.h:418: error: within this context Commands.h:53: error: invalid use of non-static data member 'InputCommand::Pattern9' Commands.h:418: error: from this location Commands.h:54: error: 'int InputCommand::Pattern10' is private Commands.h:420: error: within this context Commands.h:54: error: invalid use of non-static data member 'InputCommand::Pattern10' Commands.h:420: error: from this location Commands.h:55: error: 'int InputCommand::Pattern11' is private Commands.h:422: error: within this context Commands.h:55: error: invalid use of non-static data member 'InputCommand::Pattern11' Commands.h:422: error: from this location Commands.h:56: error: 'int InputCommand::Pattern12' is private Commands.h:424: error: within this context Commands.h:56: error: invalid use of non-static data member 'InputCommand::Pattern12' Commands.h:424: error: from this location Commands.h:58: error: 'int InputCommand::RedUp' is private Commands.h:427: error: within this context Commands.h:58: error: invalid use of non-static data member 'InputCommand::RedUp' Commands.h:427: error: from this location Commands.h:59: error: 'int InputCommand::RedDown' is private Commands.h:429: error: within this context Commands.h:59: error: invalid use of non-static data member 'InputCommand::RedDown' Commands.h:429: error: from this location Commands.h:60: error: 'int InputCommand::GreenUp' is private Commands.h:432: error: within this context Commands.h:60: error: invalid use of non-static data member 'InputCommand::GreenUp' Commands.h:432: error: from this location Commands.h:61: error: 'int InputCommand::GreenDown' is private Commands.h:434: error: within this context Commands.h:61: error: invalid use of non-static data member 'InputCommand::GreenDown' Commands.h:434: error: from this location Commands.h:62: error: 'int InputCommand::BlueUp' is private Commands.h:437: error: within this context Commands.h:62: error: invalid use of non-static data member 'InputCommand::BlueUp' Commands.h:437: error: from this location Commands.h:63: error: 'int InputCommand::BlueDown' is private Commands.h:439: error: within this context Commands.h:63: error: invalid use of non-static data member 'InputCommand::BlueDown' Commands.h:439: error: from this location Commands.h:65: error: 'int InputCommand::Red' is private Commands.h:442: error: within this context Commands.h:65: error: invalid use of non-static data member 'InputCommand::Red' Commands.h:442: error: from this location Commands.h:66: error: 'int InputCommand::RedOrange' is private Commands.h:444: error: within this context Commands.h:66: error: invalid use of non-static data member 'InputCommand::RedOrange' Commands.h:444: error: from this location Commands.h:67: error: 'int InputCommand::Orange' is private Commands.h:446: error: within this context Commands.h:67: error: invalid use of non-static data member 'InputCommand::Orange' Commands.h:446: error: from this location Commands.h:68: error: 'int InputCommand::YellowOrange' is private Commands.h:448: error: within this context Commands.h:68: error: invalid use of non-static data member 'InputCommand::YellowOrange' Commands.h:448: error: from this location Commands.h:69: error: 'int InputCommand::Yellow' is private Commands.h:450: error: within this context Commands.h:69: error: invalid use of non-static data member 'InputCommand::Yellow' Commands.h:450: error: from this location Commands.h:71: error: 'int InputCommand::Green' is private Commands.h:453: error: within this context Commands.h:71: error: invalid use of non-static data member 'InputCommand::Green' Commands.h:453: error: from this location Commands.h:72: error: 'int InputCommand::Lime' is private Commands.h:455: error: within this context Commands.h:72: error: invalid use of non-static data member 'InputCommand::Lime' Commands.h:455: error: from this location Commands.h:73: error: 'int InputCommand::Aqua' is private Commands.h:457: error: within this context Commands.h:73: error: invalid use of non-static data member 'InputCommand::Aqua' Commands.h:457: error: from this location Commands.h:74: error: 'int InputCommand::Teal' is private Commands.h:459: error: within this context Commands.h:74: error: invalid use of non-static data member 'InputCommand::Teal' Commands.h:459: error: from this location Commands.h:75: error: 'int InputCommand::Navy' is private Commands.h:461: error: within this context Commands.h:75: error: invalid use of non-static data member 'InputCommand::Navy' Commands.h:461: error: from this location Commands.h:77: error: 'int InputCommand::Blue' is private Commands.h:464: error: within this context Commands.h:77: error: invalid use of non-static data member 'InputCommand::Blue' Commands.h:464: error: from this location Commands.h:78: error: 'int InputCommand::RoyalBlue' is private Commands.h:466: error: within this context Commands.h:78: error: invalid use of non-static data member 'InputCommand::RoyalBlue' Commands.h:466: error: from this location Commands.h:79: error: 'int InputCommand::Purple' is private Commands.h:468: error: within this context Commands.h:79: error: invalid use of non-static data member 'InputCommand::Purple' Commands.h:468: error: from this location Commands.h:80: error: 'int InputCommand::Indigo' is private Commands.h:470: error: within this context Commands.h:80: error: invalid use of non-static data member 'InputCommand::Indigo' Commands.h:470: error: from this location Commands.h:81: error: 'int InputCommand::Magenta' is private Commands.h:472: error: within this context Commands.h:81: error: invalid use of non-static data member 'InputCommand::Magenta' Commands.h:472: error: from this location Commands.h:83: error: 'int InputCommand::White' is private Commands.h:475: error: within this context Commands.h:83: error: invalid use of non-static data member 'InputCommand::White' Commands.h:475: error: from this location Commands.h:84: error: 'int InputCommand::Pink' is private Commands.h:477: error: within this context Commands.h:84: error: invalid use of non-static data member 'InputCommand::Pink' Commands.h:477: error: from this location Commands.h:85: error: 'int InputCommand::LightPink' is private Commands.h:479: error: within this context Commands.h:85: error: invalid use of non-static data member 'InputCommand::LightPink' Commands.h:479: error: from this location Commands.h:86: error: 'int InputCommand::BabyBlue' is private Commands.h:481: error: within this context Commands.h:86: error: invalid use of non-static data member 'InputCommand::BabyBlue' Commands.h:481: error: from this location Commands.h:87: error: 'int InputCommand::LightBlue' is private Commands.h:483: error: within this context Commands.h:87: error: invalid use of non-static data member 'InputCommand::LightBlue' Commands.h:483: error: from this location Commands.h:32: error: 'int InputCommand::None' is private Commands.h:487: error: within this context Commands.h:32: error: invalid use of non-static data member 'InputCommand::None' Commands.h:487: error: from this location In file included from APA102_Teensy_IR.ino:55: /Spectrum.h: In function 'uint16_t spectrumBar()': Spectrum.h:20: error: 'fft' was not declared in this scope /Spectrum.h: In function 'uint16_t spectrumDots()': Spectrum.h:56: error: 'fft' was not declared in this scope APA102_Teensy_IR.ino: In function 'void setup()': APA102_Teensy_IR:89: error: 'irReceiver' was not declared in this scope APA102_Teensy_IR:99: error: 'AudioMemory' was not declared in this scope /Commands.h: In function 'void powerOff()': Commands.h:41: error: 'int InputCommand::Power' is private APA102_Teensy_IR:172: error: within this context Commands.h:41: error: invalid use of non-static data member 'InputCommand::Power' APA102_Teensy_IR:172: error: from this location Commands.h:38: error: 'int InputCommand::Brightness' is private APA102_Teensy_IR:173: error: within this context Commands.h:38: error: invalid use of non-static data member 'InputCommand::Brightness' APA102_Teensy_IR:173: error: from this location /Commands.h: In function 'void handleInput(unsigned int)': Commands.h:32: error: 'int InputCommand::None' is private APA102_Teensy_IR:241: error: within this context Commands.h:32: error: invalid use of non-static data member 'InputCommand::None' APA102_Teensy_IR:241: error: from this location APA102_Teensy_IR:243: error: invalid cast from type 'InputCommand' to type 'int' Commands.h:33: error: 'int InputCommand::Up' is private APA102_Teensy_IR:246: error: within this context Commands.h:33: error: invalid use of non-static data member 'InputCommand::Up' APA102_Teensy_IR:246: error: from this location Commands.h:36: error: 'int InputCommand::Right' is private APA102_Teensy_IR:247: error: within this context Commands.h:36: error: invalid use of non-static data member 'InputCommand::Right' APA102_Teensy_IR:247: error: from this location Commands.h:34: error: 'int InputCommand::Down' is private APA102_Teensy_IR:251: error: within this context Commands.h:34: error: invalid use of non-static data member 'InputCommand::Down' APA102_Teensy_IR:251: error: from this location Commands.h:35: error: 'int InputCommand::Left' is private APA102_Teensy_IR:252: error: within this context Commands.h:35: error: invalid use of non-static data member 'InputCommand::Left' APA102_Teensy_IR:252: error: from this location Commands.h:38: error: 'int InputCommand::Brightness' is private APA102_Teensy_IR:256: error: within this context Commands.h:38: error: invalid use of non-static data member 'InputCommand::Brightness' APA102_Teensy_IR:256: error: from this location Commands.h:41: error: 'int InputCommand::Power' is private APA102_Teensy_IR:264: error: within this context Commands.h:41: error: invalid use of non-static data member 'InputCommand::Power' APA102_Teensy_IR:264: error: from this location Commands.h:42: error: 'int InputCommand::BrightnessUp' is private APA102_Teensy_IR:268: error: within this context Commands.h:42: error: invalid use of non-static data member 'InputCommand::BrightnessUp' APA102_Teensy_IR:268: error: from this location Commands.h:43: error: 'int InputCommand::BrightnessDown' is private APA102_Teensy_IR:271: error: within this context Commands.h:43: error: invalid use of non-static data member 'InputCommand::BrightnessDown' APA102_Teensy_IR:271: error: from this location Commands.h:39: error: 'int InputCommand::PlayMode' is private APA102_Teensy_IR:274: error: within this context Commands.h:39: error: invalid use of non-static data member 'InputCommand::PlayMode' APA102_Teensy_IR:274: error: from this location Commands.h:45: error: 'int InputCommand::Pattern1' is private APA102_Teensy_IR:283: error: within this context Commands.h:45: error: invalid use of non-static data member 'InputCommand::Pattern1' APA102_Teensy_IR:283: error: from this location Commands.h:46: error: 'int InputCommand::Pattern2' is private APA102_Teensy_IR:287: error: within this context Commands.h:46: error: invalid use of non-static data member 'InputCommand::Pattern2' APA102_Teensy_IR:287: error: from this location Commands.h:47: error: 'int InputCommand::Pattern3' is private APA102_Teensy_IR:291: error: within this context Commands.h:47: error: invalid use of non-static data member 'InputCommand::Pattern3' APA102_Teensy_IR:291: error: from this location Commands.h:48: error: 'int InputCommand::Pattern4' is private APA102_Teensy_IR:295: error: within this context Commands.h:48: error: invalid use of non-static data member 'InputCommand::Pattern4' APA102_Teensy_IR:295: error: from this location Commands.h:49: error: 'int InputCommand::Pattern5' is private APA102_Teensy_IR:299: error: within this context Commands.h:49: error: invalid use of non-static data member 'InputCommand::Pattern5' APA102_Teensy_IR:299: error: from this location Commands.h:50: error: 'int InputCommand::Pattern6' is private APA102_Teensy_IR:303: error: within this context Commands.h:50: error: invalid use of non-static data member 'InputCommand::Pattern6' APA102_Teensy_IR:303: error: from this location Commands.h:51: error: 'int InputCommand::Pattern7' is private APA102_Teensy_IR:307: error: within this context Commands.h:51: error: invalid use of non-static data member 'InputCommand::Pattern7' APA102_Teensy_IR:307: error: from this location Commands.h:52: error: 'int InputCommand::Pattern8' is private APA102_Teensy_IR:311: error: within this context Commands.h:52: error: invalid use of non-static data member 'InputCommand::Pattern8' APA102_Teensy_IR:311: error: from this location Commands.h:53: error: 'int InputCommand::Pattern9' is private APA102_Teensy_IR:315: error: within this context Commands.h:53: error: invalid use of non-static data member 'InputCommand::Pattern9' APA102_Teensy_IR:315: error: from this location Commands.h:54: error: 'int InputCommand::Pattern10' is private APA102_Teensy_IR:319: error: within this context Commands.h:54: error: invalid use of non-static data member 'InputCommand::Pattern10' APA102_Teensy_IR:319: error: from this location Commands.h:55: error: 'int InputCommand::Pattern11' is private APA102_Teensy_IR:323: error: within this context Commands.h:55: error: invalid use of non-static data member 'InputCommand::Pattern11' APA102_Teensy_IR:323: error: from this location Commands.h:56: error: 'int InputCommand::Pattern12' is private APA102_Teensy_IR:327: error: within this context Commands.h:56: error: invalid use of non-static data member 'InputCommand::Pattern12' APA102_Teensy_IR:327: error: from this location Commands.h:58: error: 'int InputCommand::RedUp' is private APA102_Teensy_IR:334: error: within this context Commands.h:58: error: invalid use of non-static data member 'InputCommand::RedUp' APA102_Teensy_IR:334: error: from this location Commands.h:59: error: 'int InputCommand::RedDown' is private APA102_Teensy_IR:339: error: within this context Commands.h:59: error: invalid use of non-static data member 'InputCommand::RedDown' APA102_Teensy_IR:339: error: from this location Commands.h:60: error: 'int InputCommand::GreenUp' is private APA102_Teensy_IR:344: error: within this context Commands.h:60: error: invalid use of non-static data member 'InputCommand::GreenUp' APA102_Teensy_IR:344: error: from this location Commands.h:61: error: 'int InputCommand::GreenDown' is private APA102_Teensy_IR:350: error: within this context Commands.h:61: error: invalid use of non-static data member 'InputCommand::GreenDown' APA102_Teensy_IR:350: error: from this location Commands.h:62: error: 'int InputCommand::BlueUp' is private APA102_Teensy_IR:355: error: within this context Commands.h:62: error: invalid use of non-static data member 'InputCommand::BlueUp' APA102_Teensy_IR:355: error: from this location Commands.h:63: error: 'int InputCommand::BlueDown' is private APA102_Teensy_IR:360: error: within this context Commands.h:63: error: invalid use of non-static data member 'InputCommand::BlueDown' APA102_Teensy_IR:360: error: from this location Commands.h:65: error: 'int InputCommand::Red' is private APA102_Teensy_IR:368: error: within this context Commands.h:65: error: invalid use of non-static data member 'InputCommand::Red' APA102_Teensy_IR:368: error: from this location Commands.h:66: error: 'int InputCommand::RedOrange' is private APA102_Teensy_IR:372: error: within this context Commands.h:66: error: invalid use of non-static data member 'InputCommand::RedOrange' APA102_Teensy_IR:372: error: from this location Commands.h:67: error: 'int InputCommand::Orange' is private APA102_Teensy_IR:376: error: within this context Commands.h:67: error: invalid use of non-static data member 'InputCommand::Orange' APA102_Teensy_IR:376: error: from this location Commands.h:68: error: 'int InputCommand::YellowOrange' is private APA102_Teensy_IR:380: error: within this context Commands.h:68: error: invalid use of non-static data member 'InputCommand::YellowOrange' APA102_Teensy_IR:380: error: from this location Commands.h:69: error: 'int InputCommand::Yellow' is private APA102_Teensy_IR:384: error: within this context Commands.h:69: error: invalid use of non-static data member 'InputCommand::Yellow' APA102_Teensy_IR:384: error: from this location Commands.h:71: error: 'int InputCommand::Green' is private APA102_Teensy_IR:389: error: within this context Commands.h:71: error: invalid use of non-static data member 'InputCommand::Green' APA102_Teensy_IR:389: error: from this location Commands.h:72: error: 'int InputCommand::Lime' is private APA102_Teensy_IR:393: error: within this context Commands.h:72: error: invalid use of non-static data member 'InputCommand::Lime' APA102_Teensy_IR:393: error: from this location Commands.h:73: error: 'int InputCommand::Aqua' is private APA102_Teensy_IR:397: error: within this context Commands.h:73: error: invalid use of non-static data member 'InputCommand::Aqua' APA102_Teensy_IR:397: error: from this location Commands.h:74: error: 'int InputCommand::Teal' is private APA102_Teensy_IR:401: error: within this context Commands.h:74: error: invalid use of non-static data member 'InputCommand::Teal' APA102_Teensy_IR:401: error: from this location Commands.h:75: error: 'int InputCommand::Navy' is private APA102_Teensy_IR:405: error: within this context Commands.h:75: error: invalid use of non-static data member 'InputCommand::Navy' APA102_Teensy_IR:405: error: from this location Commands.h:77: error: 'int InputCommand::Blue' is private APA102_Teensy_IR:410: error: within this context Commands.h:77: error: invalid use of non-static data member 'InputCommand::Blue' APA102_Teensy_IR:410: error: from this location Commands.h:78: error: 'int InputCommand::RoyalBlue' is private APA102_Teensy_IR:414: error: within this context Commands.h:78: error: invalid use of non-static data member 'InputCommand::RoyalBlue' APA102_Teensy_IR:414: error: from this location Commands.h:79: error: 'int InputCommand::Purple' is private APA102_Teensy_IR:418: error: within this context Commands.h:79: error: invalid use of non-static data member 'InputCommand::Purple' APA102_Teensy_IR:418: error: from this location Commands.h:80: error: 'int InputCommand::Indigo' is private APA102_Teensy_IR:422: error: within this context Commands.h:80: error: invalid use of non-static data member 'InputCommand::Indigo' APA102_Teensy_IR:422: error: from this location Commands.h:81: error: 'int InputCommand::Magenta' is private APA102_Teensy_IR:426: error: within this context Commands.h:81: error: invalid use of non-static data member 'InputCommand::Magenta' APA102_Teensy_IR:426: error: from this location Commands.h:83: error: 'int InputCommand::White' is private APA102_Teensy_IR:431: error: within this context Commands.h:83: error: invalid use of non-static data member 'InputCommand::White' APA102_Teensy_IR:431: error: from this location Commands.h:84: error: 'int InputCommand::Pink' is private APA102_Teensy_IR:435: error: within this context Commands.h:84: error: invalid use of non-static data member 'InputCommand::Pink' APA102_Teensy_IR:435: error: from this location Commands.h:85: error: 'int InputCommand::LightPink' is private APA102_Teensy_IR:439: error: within this context Commands.h:85: error: invalid use of non-static data member 'InputCommand::LightPink' APA102_Teensy_IR:439: error: from this location Commands.h:86: error: 'int InputCommand::BabyBlue' is private APA102_Teensy_IR:443: error: within this context Commands.h:86: error: invalid use of non-static data member 'InputCommand::BabyBlue' APA102_Teensy_IR:443: error: from this location Commands.h:87: error: 'int InputCommand::LightBlue' is private APA102_Teensy_IR:447: error: within this context Commands.h:87: error: invalid use of non-static data member 'InputCommand::LightBlue' APA102_Teensy_IR:447: error: from this location
If you're an Arduino newbie, I highly recommend starting simpler. I would start with the FastLED (https://github.com/FastLED/FastLED) Blink example: https://github.com/FastLED/FastLED/blob/master/examples/Blink/Blink.ino
Once you get that working, you might try FastLED Demo Reel (which required FastLED v3.1): https://github.com/FastLED/FastLED/blob/FastLED3.1/examples/DemoReel100/DemoReel100.ino
This project (APA102_Teensy_IR) is made for a Teensy v3.1 board, which is more powerful than most Arduinos. To make it work on the Trinket Pro, you'd need to remove all of the Audio stuff which is not supported on Arduino.
I have successfully modified and run almost all of the examples in the fastled library as well as other examples from adafruit learning site. Its just that I want more options on patterns and the ability to change the patterns via remote instead of the manual push button I am using now. I really like the effects you got in your setup.
Ah, ok, if that's the case, then you'll just need to remove the stuff that's specific to the Teensy. Remove the four #includes from the top of APA102_Teensy_IR.ino, the call to AudioMemory(12), Spectrum.h, etc. Looks like there's a syntax difference between Teensy and Arduino, and it doesn't support the InputCommand enum class. Change it to just 'enum InputCommand', and then remove InputCommand:: anywhere you see it.
Let me know what other errors you see after these changes. Hopefully later tonight I can try making a branch of the project to support Arduino boards.
I gave it a go but still came up with significant errors. It would be awesome if you did have time to make an arduino branch for this project. I will be happy to test anything you like. At the end of the day I want to have the kind of light show no one has ever seen on a pair of roller skates. Thanks again for all your help.
OK, I got it compiling without error for Arduino Uno, with the latest (1.6.1) release of Arduino IDE. https://github.com/jasoncoon/APA102_Teensy_IR/tree/avr
I've confirmed it works fine on an Arduino Uno. Let me know if you have any problems.
I will give it a go as soon as I have the IR wired up. I should be able to test it tomorrow. I'll let you know asap.
On Monday, March 16, 2015, Jason Coon notifications@github.com wrote:
I've confirmed it works fine on an Arduino Uno. Let me know if you have any problems.
— Reply to this email directly or view it on GitHub https://github.com/jasoncoon/APA102_Teensy_IR/issues/1#issuecomment-81997594 .
It should also work fine without IR. You can enable autoplay and change the duration, wire up a button to change patterns, etc.
Awesome. I will download the code and provide feedback as soon as I can.
On Monday, March 16, 2015, Jason Coon notifications@github.com wrote:
It should also work fine without IR. You can enable autoplay and change the duration, wire up a button to change patterns, etc.
— Reply to this email directly or view it on GitHub https://github.com/jasoncoon/APA102_Teensy_IR/issues/1#issuecomment-81998881 .
Tried to load it first thing this morning no luck. It hangs up at the IR receiver not being defined. I have posted the output below. I will be using the 1838 or 1838b IR receiver with 24 key remote. Let me know what you think. I appreciate all the help.
APA102_Teensy_IR:20: error: 'IRrecv' does not name a type In file included from APA102_Teensy_IR.ino:24: /Commands.h: In function 'long unsigned int decodeIRCode()': Commands.h:191: error: 'decode_results' was not declared in this scope Commands.h:191: error: expected `;' before 'results' Commands.h:193: error: 'results' was not declared in this scope Commands.h:196: error: 'irReceiver' was not declared in this scope APA102_Teensy_IR.ino: In function 'void setup()': APA102_Teensy_IR:76: error: 'irReceiver' was not declared in this scope
Do you have the IRRemote library installed? https://github.com/shirriff/Arduino-IRremote
You hit the nail on the head. I had it downloaded but forgot to add it to the library. The sketch is compiling now with no errors. I will upload it and wire up the led strip for testing shortly.
I cant even get the strip to light up using an UNO. unless I am missing something with pin assignment. I have ground and 5v connected to the uno and data on pin 4 and clock on pin 3. Not sure whats going on.
On Tue, Mar 17, 2015 at 7:36 AM, Jason Coon notifications@github.com wrote:
Do you have the IRRemote library installed? https://github.com/shirriff/Arduino-IRremote
— Reply to this email directly or view it on GitHub https://github.com/jasoncoon/APA102_Teensy_IR/issues/1#issuecomment-82322742 .
i modified the code to match the pin assignments as well.
made a classic mistake. I just noticed that the factory wiring on this strip is wired up to the data out. I will revisit this later today and provide an update.
On Tue, Mar 17, 2015 at 9:28 AM, maddog5683 maddog5683@gmail.com wrote:
I cant even get the strip to light up using an UNO. unless I am missing something with pin assignment. I have ground and 5v connected to the uno and data on pin 4 and clock on pin 3. Not sure whats going on.
On Tue, Mar 17, 2015 at 7:36 AM, Jason Coon notifications@github.com wrote:
Do you have the IRRemote library installed? https://github.com/shirriff/Arduino-IRremote
— Reply to this email directly or view it on GitHub https://github.com/jasoncoon/APA102_Teensy_IR/issues/1#issuecomment-82322742 .
ok, back on the right track. strip is working and auto play worked. This is super sweet. So my next question is making it work with a button (temporarily) and what are the odds getting you to add additional patterns for an even better light show?? Again thank you in advance for all your help this is going to be the craziest set of roller skates ever!! 40 leds per skate should make for an impressive light show.
On Tue, Mar 17, 2015 at 9:32 AM, maddog5683 maddog5683@gmail.com wrote:
made a classic mistake. I just noticed that the factory wiring on this strip is wired up to the data out. I will revisit this later today and provide an update.
On Tue, Mar 17, 2015 at 9:28 AM, maddog5683 maddog5683@gmail.com wrote:
I cant even get the strip to light up using an UNO. unless I am missing something with pin assignment. I have ground and 5v connected to the uno and data on pin 4 and clock on pin 3. Not sure whats going on.
On Tue, Mar 17, 2015 at 7:36 AM, Jason Coon notifications@github.com wrote:
Do you have the IRRemote library installed? https://github.com/shirriff/Arduino-IRremote
— Reply to this email directly or view it on GitHub https://github.com/jasoncoon/APA102_Teensy_IR/issues/1#issuecomment-82322742 .
I'd recommend trying the Arduino button tutorial if you haven't already: http://arduino.cc/en/tutorial/button
Then it'll just me a matter of incrementing the current pattern index if the button is pressed. Make sure you handle the button being pressed and held long enough for the loop to hit twice, which is very common.
I'll undoubtedly add new patterns as inspiration hits and time permits. If there are any specific patterns you'd like let me know, I could be bribed into implementing them for you. If you create any new ones, be sure to share them and I might merge them in.
Glad to help, be sure to share pics and video if you can. I highly recommend the FastLED community on G+ if you're not already a member: https://plus.google.com/u/0/communities/109127054924227823508
Love this project. Any chance making this work on a Pro Trinket? I am working on putting a 40led APA102 strip around the bottom of my roller skates and would love the ability to run this.