Daft Punk Helmet Project by ThreeFN

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: lily.li, violet, salmanfarisvp

mshaub
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Mon Oct 12, 2009 2:46 pm

Re: Daft Punk Helmet Project by ThreeFN

Post by mshaub » Sat Oct 24, 2009 3:15 am

I know my Rainbowduino is set to the default address of '4'. But, I'm not sure where that should be added to your new code from today. I think it's the first int called out in each of your classes, but that only gets me so far.

ThreeFN
Pre-kindergarten
Pre-kindergarten
Posts: 8
Joined: Tue Sep 08, 2009 8:15 am

Re: Daft Punk Helmet Project by ThreeFN

Post by ThreeFN » Sat Oct 24, 2009 3:34 am

mshaub wrote:I know my Rainbowduino is set to the default address of '4'. But, I'm not sure where that should be added to your new code from today. I think it's the first int called out in each of your classes, but that only gets me so far.
I really need to get better at writing out my helpful ideas/statements :P

I hope all you should have to change is SendCMD() to SendCMD(4). I looked at the new master code I posted and that's essentially what the ShowMono, etc, etc commands do anyways. They just take the color variables, the frame bytes and address as inputs rather than doing explicitly like the example code I posted.

Ideally, don't use the Show commands since they require byte arrays that chew up your SRAM in a hurry. They were just put in to show how to format your own commands that don't require so much memory. I NEVER use them since my RainbowCMD buffer is always directly populated by image/animation functions or data the functions retrieve from PROGMEM. There's about enough room in the SRAM for the RainbowCMD[4][32] a few times and then that's it. If you have a few screens worth of stuff stored without PROGMEM, you've filled up your SRAM. Try and populate the command buffer (RainbowCMD) directly from PROGMEM or possibly one other buffer you use the generate animations. For instance, I had a small array for both of my rainbow hallways that held a number from 0 to 45 for 45 unique, equal brightness colors. this was then used to populate the the RainbowCMD six times (one for each of my individual screens) and after each population of RainbowCMD I would send to one of the rainbowduinos before rewriting RainbowCMD and sending to the next rainbowduino.

mshaub
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Mon Oct 12, 2009 2:46 pm

Re: Daft Punk Helmet Project by ThreeFN

Post by mshaub » Sat Oct 24, 2009 3:50 am

Cool, at least with that addition the code compiles, uploads, and displays the pattern you've described. I'm excited to start messing with it now and make some animations. Thanks so much!

ThreeFN
Pre-kindergarten
Pre-kindergarten
Posts: 8
Joined: Tue Sep 08, 2009 8:15 am

Re: Daft Punk Helmet Project by ThreeFN

Post by ThreeFN » Sat Oct 24, 2009 4:21 am

mshaub wrote:Cool, at least with that addition the code compiles, uploads, and displays the pattern you've described. I'm excited to start messing with it now and make some animations. Thanks so much!
No problem. I just wish I had gotten the bloomin thing right the first time.

Post Reply