Jump to content

[solved] RGB Led colour question


Marxon
 Share

Recommended Posts

Hi all!

Because there are various ways to set the colour of a rgb led,

i wonder does it make a difference if a colour inside a rgb led matrix

is made of multiple single colour events respectively a single rgb event?
I guess yes.

AFAIK the rgb event uses pwm to mix red green and blue.
So creating orange by simply turn on red and green is not a good way.
Is this correct?

Best regards
Marxon
 

Edited by Marxon
Link to comment
Share on other sites

  • 2 weeks later...

Hi Thorsten,

to describe the issue without
ich bemühe mich keine Romane zu schreiben und die Beiträge auf das wesentliche meines Anliegens zu reduzieren.
Klappt leider nicht immer :smile:
I made a ring out of 32 duo colour leds driven by three SRs connected like a 8x8 matrix.
Row 1-4 form tbe four quarters of the ring (a second ring with 32 leds is connected to row 5-8...)
Now i want to control the red color with a CC and green with another CC like this picture:
post-4098-0-73314900-1423182538_thumb.jp

Because i did not find a better solution i simply mix green and red with this code:

 

 

# EVENTs [connector RINGS]-------------------------------------------------------
# ---------------------------------------------------------------------------------
DOUT_MATRIX n=1      rows=8    inverted_row=1 inverted_sel=1 mirrored_row=0     sr_dout_sel1=2 sr_dout_r1=1 sr_dout_g1=3
# Ring 1 Red
EVENT_LED_MATRIX     id=625               type=CC  chn=1 cc=111  range=0:32        led_matrix_pattern=5    colour=0
EVENT_LED_MATRIX     id=626               type=CC  chn=1 cc=111  range=32:64        led_matrix_pattern=5    colour=0
EVENT_LED_MATRIX     id=627               type=CC  chn=1 cc=111  range=64:96        led_matrix_pattern=5    colour=0
EVENT_LED_MATRIX     id=628               type=CC  chn=1 cc=111  range=96:127        led_matrix_pattern=5    colour=0
# Ring 1 Green
EVENT_LED_MATRIX     id=629    hw_id=625     type=CC  chn=1 cc=112  range=0:32         led_matrix_pattern=5    colour=1
EVENT_LED_MATRIX     id=630  hw_id=626     type=CC  chn=1 cc=112  range=32:64         led_matrix_pattern=5     colour=1
EVENT_LED_MATRIX     id=631  hw_id=627     type=CC  chn=1 cc=112  range=64:96      led_matrix_pattern=5     colour=1
EVENT_LED_MATRIX     id=632  hw_id=628     type=CC  chn=1 cc=112  range=96:127     led_matrix_pattern=5     colour=1
# Ring 2 Red
EVENT_LED_MATRIX     id=633              type=CC  chn=1 cc=113  range=0:32          led_matrix_pattern=5    colour=0
EVENT_LED_MATRIX     id=634              type=CC  chn=1 cc=113  range=32:64       led_matrix_pattern=5    colour=0
EVENT_LED_MATRIX     id=635              type=CC  chn=1 cc=113  range=64:96      led_matrix_pattern=5    colour=0
EVENT_LED_MATRIX     id=636              type=CC  chn=1 cc=113  range=96:127     led_matrix_pattern=5    colour=0
# Ring 2 Green
EVENT_LED_MATRIX     id=637  hw_id=633    type=CC  chn=1 cc=114  range=0:32          led_matrix_pattern=5    colour=1
EVENT_LED_MATRIX     id=638  hw_id=634    type=CC  chn=1 cc=114  range=32:64       led_matrix_pattern=5     colour=1
EVENT_LED_MATRIX     id=639  hw_id=635    type=CC  chn=1 cc=114  range=64:96      led_matrix_pattern=5     colour=1
EVENT_LED_MATRIX     id=640     hw_id=636    type=CC  chn=1 cc=114  range=96:127     led_matrix_pattern=5     colour=1
# LED Patterns
LED_MATRIX_PATTERN n=5  pos=0   pattern=0000000000000000
LED_MATRIX_PATTERN n=5  pos=1   pattern=1000000000000000
LED_MATRIX_PATTERN n=5  pos=2   pattern=1000000000000000
LED_MATRIX_PATTERN n=5  pos=3   pattern=1100000000000000
LED_MATRIX_PATTERN n=5  pos=4   pattern=1100000000000000
LED_MATRIX_PATTERN n=5  pos=5   pattern=1110000000000000
LED_MATRIX_PATTERN n=5  pos=6   pattern=1110000000000000
LED_MATRIX_PATTERN n=5  pos=7   pattern=1111000000000000
LED_MATRIX_PATTERN n=5  pos=M   pattern=1111000000000000
LED_MATRIX_PATTERN n=5  pos=8   pattern=1111100000000000
LED_MATRIX_PATTERN n=5  pos=9   pattern=1111100000000000
LED_MATRIX_PATTERN n=5  pos=10  pattern=1111110000000000
LED_MATRIX_PATTERN n=5  pos=11  pattern=1111110000000000
LED_MATRIX_PATTERN n=5  pos=12  pattern=1111111000000000
LED_MATRIX_PATTERN n=5  pos=13  pattern=1111111000000000
LED_MATRIX_PATTERN n=5  pos=14  pattern=1111111100000000
LED_MATRIX_PATTERN n=5  pos=15  pattern=1111111100000000


Thats what i meant when I said the resulting orange color is made of two "single color" events.
Now the question:
Does it make a electrical difference to mix a led color this way instead of using the rgb=xx:xx:xx parameter?
 
 
 Best regards
 Marxon
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...