LED intensity varies during execution of code (by Ziggy)
I am trying to sequence a few LEDs through a fixed pattern of light flashes.
I apply no modulation tot he LEDs other than the requisite patten of ON OFF steps.
The LEDs are tied to +5V rail and the pins sink current through a resistors.
So no modulation ... and yet the LED brightness varies during the excution of a sequence of 1 second flashes.
Any advice or similar experience and resolution to the problem welcome.
(no subject) (by Ziggy)
Ihor,
thanks for the hints.
The problem was caused by multiple rungs whihc controlled the output pins.
So on each cycle the rungs woud be calculate,,, and subsequently as the output pin was calculate and recalculated durin the one iteratio the LED would be activated and deactivaed a number of times resulting in dimming of the led.
My poor coding.