RGB LED has 3 outputs from Pic connected to it and assigned variables , PWR_LOWLED(red) , PWR_LED (blue),OK_LED(green
1. colors are different so i would see if the " PWR_LED= 0" command worked or not
You state "the PWR_LED remains on". Which, would appear to agree with what I understand you to say, but is not correct. TOGGLE simply makes the pin HIGH again immediately after turning it off and so, it appears to remain on. Try putting a pause between the statements to verify my assumption, so that you may observe PWR_LED being turned off, then [PAUSE], then TOGGLE reversing the pin output and turning the LED on again.
2. the toggle is changing the " PWR_LOWLED " ( red) only, not the other colors
3. pause had no effect ,
4. the PWR_LED is on before getting to this part of the code
5. if the " toggle PWR_LOWLED " (red) is placed after the command "PWR_LED =0" ( blue ) then the blue led remians on , with the red flashing
6. if the command "PWR_LED =0" ( blue ) is placed after " toggle PWR_LOWLED " (red) then the blue led is off , with the red flashing
is not a biggy and its works ok when done in the sequence described , just cant see why
Bookmarks