Marxon
January 24, 2015, 4:18pm
1
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
T.K
January 25, 2015, 8:37pm
2
To be honest: I don’t understand the question.
Could you please show some .ngc code?
Best Regards, Thorsten.
Marxon
February 6, 2015, 12:29am
3
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
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:
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
T.K
February 9, 2015, 7:47pm
4
The electrical difference between your configuration and the rgb=r:g:b is, that rgb=… allows to dimm LED brightness
Best Regards, Thorsten.
Marxon
February 12, 2015, 10:14pm
5
Ok thank you for clarification Thorsten.
Best regards
Marxon