Well… I guess you can at least check that your ‘fiddlings’ compile correctly.
Alright, so after a little bit of a hiatus i posted a video of my progress on this project. I am having problems with integrating a matrix example with one intended for strands i am getting an error when i try to incorporate one with the other.
conflicting declaration ‘cLEDMatrix<32, 16, HORIZONTAL_MATRIX> leds’
TextExample4:33: error: conflicting declaration ‘cLEDMatrix<32, 16, HORIZONTAL_MATRIX> leds’
TextExample4:23: error: ‘leds’ has a previous declaration as ‘CRGB leds [196]’
TextExample4.ino: In function ‘void setup()’:
TextExample4:52: error: request for member ‘Size’ in ‘leds’, which is of non-class type ‘CRGB [196]’
TextExample4:67: error: request for member ‘Width’ in ‘leds’, which is of non-class type ‘CRGB [196]’
TextExample4.ino: In function ‘void setup()’:
TextExample4:87: error: redefinition of ‘void setup()’
TextExample4:50: error: ‘void setup()’ previously defined here
TextExample4:89: error: ‘LED_TYPE’ was not declared in this scope
TextExample4:89: error: no matching function for call to ‘CFastLED::addLeds(CRGB [196], int)’
It seems to me as if I cannot define both a matrix and a standard strip? is there any way of running the two programs independantly but still have the ability to button cycle through the animations and then to some scrolling text?
@Aren_Hibbing , You should provide the complete sketch in pastebin or gist if you need support !
From this error line…
TextExample4:23: error: ‘leds’ has a previous declaration as ‘CRGB leds [196]’
I suggest that you just try to give it another name than ‘leds’
I have easily added Aarons scrolling text on my 7x75 matrix. his newest updates add so much more than last year but I could easily compare your code with mine and prob find the bug easily
Unless I am mistaken I should only have 1 “VOID SETUP” correct? and as you had said JP Roy i should declare leds as something else? I am not sure where to go from here, i am trying to get some coding done in the little spare time i have in between making both helmets.
p.s. in case you guys missed it
missing/deleted image from Google+
The animations shown on that matrix are intended for strip, but i really like the effect it gives, which is why i would now want to integrate some scrolling text into the same code.
To this question… Unless I am mistaken I should only have 1 “VOID SETUP” correct?
Yes you must have only one setup defined !
To the next question… and as you had said JP Roy i should declare leds as something else?
From the error message I saw before, it would seem you tried to assign the name leds twice and the compiler did not accept it. That is why I suggested that you use a different name for that 2nd case. It is only a name !
For sure that sketch you posted is NOT the sketch that runs in that helmet video !?!?
@JP_Roy no it is not, part of it is yes. I tried and failed to implement text from Aaron’s code.
And thank you, I will keep trying to see what I can come up with.
Would you mind telling me what i am doing wrong? I got a little off track from what i was doing and attempted to make your suggestion of a button press work… didn’t go so well
@Aren_Hibbing Many things wrong here…
you must have only 1 void loop(){
Your switch case structure is a total mess !!!
You should not have function specification inside switch case… that is for case 2: and case 3: and case 4: and the default:
you also have 2X case 3: !!!???
But you can of course call a function within a case: but that definition should be outside the switch case structure.
Do check this out in the Arduino reference.