Remote Processing CAMBASIC User Manual

Page 182

Advertising
background image

CON FIG C ommands - 9

EXAMPLE:

The example below is for a vacuum florescent 2x20 display. It illustrates both continuous updating
and periodic updating of the display.

500 ON TICK .1 GOSUB 590
510 CONFIG DISPLAY & 40,3,0
520 DISPLAY “REMOTE PROCESSING”;
530 DISPLAY (3,1) “Tick = “;
540 DISPLAY (3,8);
550 PRINT#9,USING”###.##”;TICK(0);
560 IF TICK(0)>110 THEN CLEAR TICK
570 GOTO 540
580 ‘
590 INC S:IF S=20 THEN S=0:DISPLAY (2,19)” “;:DISPLAY(2,S)”>“;:RETURN
600 DISPLAY (2,S-1)”>“;
610 DISPLAY (3,8);
620 RETURN

ERROR:

< Data negative> - for all parameters
< Data range> - if type > 7 or cursor > 2
< Data > 65,535> - for address

Advertising