Bargraph mess
adys
Posts: 395
Hi all
I have 4 bargraphs
When sending them Level value 0, sometimes it just ignore the value
When sending level value 1 and then 0, it always work...
SEND_LEVEL tpListLeds,GREEN_LEDS_LEVEL,1
SEND_LEVEL tpListLeds,GREEN_LEDS_LEVEL,0
Also create_level didn't work and the variable was not updated as I expected , and I am working with level_event.
// levels are from 1 - 4
CREATE_LEVEL tpListLeds, RED_LEDS_LEVEL, m_RED_LEDS_LEVEL
CREATE_LEVEL tpListLeds, GREEN_LEDS_LEVEL, m_GREEN_LEDS_LEVEL
CREATE_LEVEL tpListLeds, BLUE_LEDS_LEVEL, m_BLUE_LEDS_LEVEL
CREATE_LEVEL tpListLeds, MAIN_LEDS_LEVEL, m_MAIN_LEDS_LEVEL
What am I doing wrong?
Thanks
Ady
I have 4 bargraphs
When sending them Level value 0, sometimes it just ignore the value
When sending level value 1 and then 0, it always work...
SEND_LEVEL tpListLeds,GREEN_LEDS_LEVEL,1
SEND_LEVEL tpListLeds,GREEN_LEDS_LEVEL,0
Also create_level didn't work and the variable was not updated as I expected , and I am working with level_event.
// levels are from 1 - 4
CREATE_LEVEL tpListLeds, RED_LEDS_LEVEL, m_RED_LEDS_LEVEL
CREATE_LEVEL tpListLeds, GREEN_LEDS_LEVEL, m_GREEN_LEDS_LEVEL
CREATE_LEVEL tpListLeds, BLUE_LEDS_LEVEL, m_BLUE_LEDS_LEVEL
CREATE_LEVEL tpListLeds, MAIN_LEDS_LEVEL, m_MAIN_LEDS_LEVEL
What am I doing wrong?
Thanks
Ady
0
Comments
A CREATE_LEVEL is only a automatism to get the level's value into a variable. This has no effect to sending a value to a level. The update of the variable again is only done if the level changes.