added ledBufferDirty flag

The ledBufferDirty flag keeps the LEDs from being updated multiple times
in the same frame