The present invention provides a rotary switch mechanism comprising a dial unit and a position sensor that rotates as the dial unit rotates, with the rotational position of the dial unit determined based upon an output signal provided by the position sensor. The light emanating from the object is time modulated according to the mask features of the spatial filter. A memory stores a plurality of software modules and a first state of the circuit board.