mobilebasic/Examples/Sensors/proximity.bas

10 lines
203 B
QBasic
Raw Permalink Normal View History

2021-03-29 19:43:07 +03:00
SUB MAIN
IF (IsProximityAvailable()) THEN
WHILE (TRUE)
PRINT getProximity()
SLEEP 1000
END WHILE
ELSE
PRINT "Proximity Sensor is not available on this device"
END IF
END SUB