10 lines
191 B
QBasic
10 lines
191 B
QBasic
|
SUB MAIN
|
||
|
IF (IsLightAvailable()) THEN
|
||
|
WHILE (TRUE)
|
||
|
PRINT getLight()
|
||
|
SLEEP 1000
|
||
|
END WHILE
|
||
|
ELSE
|
||
|
PRINT "Light Sensor is not available on this device"
|
||
|
END IF
|
||
|
END SUB
|