Pages: [1]   Go Down
Author Topic: LED Light Cube strategy question  (Read 197 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

have build a LED light cube, the hardware is ok and working.

I would like to choose different colors and also a RGB fade mode....
I dont have a problem to choose different colors by using serial-data. e.g. i press 1 for green, 2 for blue etc... but i need some help to start with the RBG code... i normaly use the while function, but when i enter 0 (to switch off the cube) the rgb-mode should stop imediately, and not when the while functions jumps to the next...

I hope you can understand what my problem is. What kind of strategy would you choose to use as less as possible code, and dont mess it up too much?
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 601
Posts: 48553
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What kind of strategy would you choose to use as less as possible code, and dont mess it up too much?
Personally, I'd define a protocol for sending messages to the Arduino. Then, I'd be more concerned about implementing that protocol correctly than in implementing it with the least amount of code.

You seem to have missed reading the sticky at the top of the Programming Questions section, particularly section 6.
Logged

Pages: [1]   Go Up
Jump to: