Notifications
Clear all

FastLED RGBDigit

5 Posts
4 Users
0 Likes
753 Views
henrik_t7
(@henrik_t7)
Member
Joined: 3 years ago
Posts: 21
Topic starter  

   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6893
 

Any time I see code like that I think array and for loops. Does that help.

NOTE I did not read in depth but assume a logical pattern that can be coded in a loop.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6893
 

@henrik_t7 Is there some sort of pattern, or algorithm so that the code can be reduced?

OR

Would you prefer totally random, that's doable in much less code.

I am interested because I have a string of those multi-coloured leds that I promised my wife would be up for next xmas and some music would drive them, not sure if it's a hearing thing or data (off the net) thing.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2507
 
Posted by: @henrik_t7

Hi

I have made a counter which counts from 0 to 9 on two RGBDigit 08 "full color 7 Segment.

I have used FastLED library for this task. If you see the code, you can not do it any other way ??

FastLED library link: https://fastled.io/

RGBDigit link: https://www.rgbdigit.com/shop/index.php?id_product=21&controller=product&id_lang=1

Do you always want the segment to light up as a specific colour (i.e. this segment is always the same colour, (for instance [0] -s always YELLOW), unless it's OFF in which case it's black) ?

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

@henrik_t7

Last time I remember using this fastLed library.

https://forum.dronebotworkshop.com/arduino/theatre-chase-in-opposite-directions/

Haven't seen these color 7 segment displays before.

With the old monochrome 7 segment displays you would simply count up to nine and use a binary coded decimal to seven segment decoder ic.

 


   
ReplyQuote