writeLEDMode in ledrender.c