fixed flash function, altered accepted

values for analog read and lighting display modes