Rpbasic-52 programming guide, Clear display – Remote Processing BASIC 52 User Manual
Page 35

RPBASIC-52 PROGRAMMING GUIDE
2-16
CLEAR DISPLAY
Syntax: C L E A R D I S PL A Y
Clears character and, if available, graphics displays.
C L E A R D I S PL A Y L I N E Clears character line
CLEAR DISPLAY LINE(x1,y1)-(x2,y2)
Clears graphics line
CLEAR DISPLAY P(x,y)
Clears a point on a graphics screen
C L E A R D I S PL A Y C
Clears characters only on graphics screen
C L E A R D I S PL A Y G
Clears graphics only on graphics screen
Function:
Clears display as directed by its options
Mode:
Comm and, Run
Use:
C L E A R D I S PL A Y
Clears entire display and homes cursor
Cards:
All
D E S C R IP T I ON
Character displays may use only CLEAR DISPLAY and CLEAR DISPLAY LINE.
Characte r displays require sev eral milli-second s to clear. After CL EAR DISPL AY state ment, it is best to
execute several other RPBASIC-52 commands before using the DISPLAY command again. This will allow
the display to "catch up" to the program. Failure to do so may result in an incomplete screen clear or missing
characters/data.
NOTE: CLEAR DISPLAY LINE requires several milli-seconds to execute. LCD displays require up to 10
ms while the VF display requires 20 ms. Processing other RPBASIC-52 interrupts are delayed by
this amount of time.
T h e x a n d y g r ap h ic c o or d in a te s a re t he s a m e a s th o s e s p e ci f ie d in t he D I SP L A Y L I N E a n d D IS P L A Y P
comm ands.
RELATED
D I S P LA Y
E R R O R
B A D S Y N T A X
When wrong option is used with a display.