;******************************************************************* ;Light sensor program. Shows how to access the on boad light sensor ;Written by Dale Kubin ;******************************************************************* light var word main adin p11,light ;load the light sensor value into the variable light Serout S_OUT, i9600, [dec light,13] ;send it out the serial port. goto main ;do it forever