'This Program read the photocell on pin 1 and returns a reading 'to the computer screen using the Debug instruction. '-------------------------------------------------------------------------- Output 0 'Sets pin 0 as an output Input 1 'Sets pin 1 as an input 'The following lines define symbols for use as program variables. Symbol Photo_Scale = b0 'Scale value for POT instruction. '(see text for details.) Symbol Sensed = b1 'Value representing the light 'level shining on the photocell. 'The following line are where you should enter your calibration values '(see text for details on each) Let Photo_Scale = 50 'Photocell scale value (see text). Start: 'Start of the main program. 'This is the main portion of the program. It reads the light value of the 'photocell and returns a reading to the screen. Loop: Pot 1,Photo_Scale,Sensed 'Reads the photocell Debug Sensed 'Returns reading to screen Goto Loop 'Start again at "loop". End