# Command reference A - C

A
ABS | ABS( number )
ACOS | ACOS( number )
ADC CLOSE | ADC CLOSE
ADC FREQUENCY | ADC FREQUENCY frequency
ADC OPEN | ADC OPEN frequency,channel1-pin [,channel2-pin] [,channel3-pin] [,interrupt]
ADC START | ADC START channel1array!() [,channel2array!()] [,channel3array!()]
ADC TRIGGER | ADC TRIGGER channel, level
ADD <MATH> | MATH ADD in(), num, out()
ALL <LIST> | LIST ALL [file$]
ALTITUDE <GPS> | GPS(ALTITUDE)
AND | condition AND condition
AND | logical AND
AND_PIXELS <BOX> | BOX AND_PIXELS x, y, w, h, colour [,pageno]
AND_PIXELS <PAGE> | PAGE AND_PIXELS sourcepage1, sourcepage2, destinationpage
ANGLE <OPTION> | OPTION ANGLE mode
APPEND <LONGSTRING> | LONGSTRING APPEND array%(), string$
ARC | ARC x, y, r1, [r2], rad1, rad2, colour
AREA <GUI> | GUI AREA #ref, X, Y [, width, height]
AS | OPEN fname$ FOR mode AS [#]fnbr | OPEN comspec$ AS [#]fnbr | OPEN comspec$ AS GPS [,tz_offset] [,monitor]
ASC | ASC( string$ )
ASCII | ASCII codes
ASIN | ASIN( radians )
ATAN2 | ATAN2( y, x )
ATAN3 <MATH> | MATH(ATAN3 x,y)
ATN | ATN( radians )
AUTORUN <OPTION> | OPTION AUTORUN OFF | ON
AUTOSAVE | AUTOSAVE file$ | [CRUNCH]
B
BACKLIGHT | BACKLIGHT percent
BACKUP <FRAMEBUFFER> | FRAMEBUFFER BACKUP
BACKWARD <TURTLE> | TURTLE BACKWARD n
BARGAUGE <GUI> | GUI BARGAUGE #ref,X,Y,W,H,F,B,m,m,c1,ta,c2,tb,c3,tc,c4
BASE <OPTION> | OPTION BASE 0 | 1
BASE$ | BASE$( base, number [, chars])
BASELINE <OPTION> | OPTION BASELINE ON | OFF
BAUDRATE <OPTION> | OPTION BAUDRATE nbr
BAUDRATE | BAUDRATE( comm [, timeout] )
BCOLOUR <GUI> | GUI BCOLOUR colour, #ref1 [, #ref2, ...]
BEEP <GUI> | GUI BEEP msec
BEGIN FILL <TURTLE> | TURTLE BEGIN FILL
BIN$ | BIN$( number [, chars])
BIN2STR$ | BIN2STR$(type, value [,BIG])
BITBANG BITSTREAM | BITBANG BITSTREAM pinno, n_transitions, array%()
BITBANG WS2812 | BITBANG WS2812 type, pin, colours%()
BITMAP <GUI> | GUI BITMAP x, y, data [, w] [, h] [, s] [, colour] [, bc]
BITSTREAM <BITBANG> | BITBANG BITSTREAM pinno, n_transitions, array%()
BLIT | BLIT x1, y1, x2, y2, w, h [,page] [,orientation]
BLIT CLOSE | BLIT CLOSE [#]b
BLIT READ | BLIT READ [#]b, x, y, w, h [,pagenumber]
BLIT WRITE | BLIT WRITE [#]b, x, y
BMP <LOAD> | LOAD BMP file$ [, x, y]
BOUND | BOUND(array() [,dimension]
BOX | BOX x, y, w, h [, lw] [,c] [,fill]
BOX AND_PIXELS | BOX AND_PIXELS x, y, w, h, colour [,pageno]
BOX OR_PIXELS | BOX OR_PIXELS x, y, w, h, colour [,pageno]
BOX XOR_PIXELS | BOX XOR_PIXELS x, y, w, h, colour [,pageno]
BREAK <OPTION> | OPTION BREAK nn
BUTTON <GUI> | GUI BUTTON #ref, caption$, X, Y [, w, h, FC, BC]
BYTE <PEEK> | PEEK(BYTE addr%)
BYTE <POKE> | POKE BYTE addr%, byte
C
C <SPRITE> | SPRITE(C, [#]n [, m ])
CALIBRATE <GUI> | GUI CALIBRATE [, a1, a2, a3, a4, a5]
CALL | CALL usersubname$ [,usersubparameters,....]
CAMERA <DRAW3D> | DRAW3D CAMERA n, z_viewplane[,x_camera [,y_camera] [,PAN_X] [,PAN_Y]
CAPTION <GUI> | GUI CAPTION #ref, text$, X, Y [, just$, FC], BC]
CASE | CASE testexp [[, testexp] ?]
CASE <OPTION> | OPTION CASE UPPER | LOWER | TITLE
CASE <SELECT> | SELECT CASE value
CASE ELSE | CASE ELSE
CASE IS | CASE [IS] comparison
CAT | CAT string$1, string$2
CFUNCTION | CFUNCTION name( type [,type ... ] ) typereturn
CFUNCTION <END> | END CFUNCTION
CHDIR | CHDIR dir$
CHECKBOX <GUI> | GUI CHECKBOX #ref, caption$, X, Y [, size, colour]
CHI <MATH> | MATH(CHI a())
CHI_p <MATH> | MATH(CHI_p a())
CHOICE | CHOICE(condition, ExpressionIfTrue, ExpressionIfFalse)
CHR$ | CHR$( number )
CINT | CINT( number )
CIRCLE | CIRCLE x, y, r [, lw] [, a] [, colour] [, fill]
CLASSIC CLOSE <CONTROLLER> | CONTROLLER CLASSIC CLOSE [n]
CLASSIC CLOSE <WII> | WII CLASSIC CLOSE [n]
CLASSIC OPEN <CONTROLLER> | CONTROLLER CLASSIC OPEN [n] [,interrupt [,bitmask] ]
CLASSIC OPEN <WII> | WII CLASSIC OPEN [n] [,interrupt [,bitmask] ]
CLASSIC | CLASSIC(funct, channel)
CLEAR | CLEAR
CLEAR <LCD> | LCD CLEAR
CLEAR <LONGSTRING> | LONGSTRING CLEAR array%()
CLEAR <VAR> | VAR CLEAR
CLOCKTRIM <OPTION> | OPTION CLOCKTRIM ?n
CLOSE | CLOSE [#]nbr [,[#]nbr] ?
CLOSE <ADC> | ADC CLOSE
CLOSE <BLIT> | BLIT CLOSE [#]b
CLOSE <DRAW3D> | DRAW3D CLOSE n [,n1 [,n2...]]
CLOSE <FRAMEBUFFER> | FRAMEBUFFER CLOSE
CLOSE <I2C2> | I2C2 CLOSE
CLOSE <I2C3> | I2C3 CLOSE
CLOSE <I2C> | I2C CLOSE
CLOSE <IR> | IR CLOSE
CLOSE <KEYPAD> | KEYPAD CLOSE
CLOSE <LCD> | LCD CLOSE
CLOSE <SPI2> | SPI2 CLOSE
CLOSE <SPI> | SPI CLOSE
CLOSE <SPRITE> | SPRITE CLOSE [#]n
CLOSE ALL <DRAW3D> | DRAW3D CLOSE ALL
CLOSE ALL <SPRITE> | SPRITE CLOSE ALL
CLS | CLS [colour]
CMD <LCD> | LCD CMD d1 [, d2 [, etc]]
COLOR | COLOR fore [, back]
COLOUR | COLOUR fore [, back]
COLOURCODE <OPTION> | OPTION COLOURCODE ON | OFF | REVERSE
COMMANDS <LIST> | LIST COMMANDS
CONCAT <LONGSTRING> | LONGSTRING CONCAT dest%(), src%()
CONSOLE <OPTION> | OPTION CONSOLE SCREEN | SERIAL | BOTH or OPTION CONSOLE SAVE
CONSOLE AUTO <OPTION> | OPTION CONSOLE AUTO
CONSOLE ECHO <OPTION> | OPTION CONSOLE ECHO | NOECHO
CONSOLE INVERT <OPTION> | OPTION CONSOLE INVERT | NOINVERT
CONSOLE PORT <OPTION> | OPTION CONSOLE PORT n
CONST | CONST id = expression [, id = expression] ...
CONTINUE | CONTINUE
CONTINUE DO | CONTINUE DO
CONTINUE FOR | CONTINUE FOR
CONTROLLER | CONTROLLER option
CONTROLLER CLASSIC CLOSE | CONTROLLER CLASSIC CLOSE [n]
CONTROLLER CLASSIC OPEN | CONTROLLER CLASSIC OPEN [n] [,interrupt [,bitmask] ]
CONTROLLER MOUSE CLOSE | CONTROLLER MOUSE CLOSE [n]
CONTROLLER MOUSE OPEN | CONTROLLER MOUSE OPEN [n] [,LEFTBUTTONint] [,RIGHTBUTTONint]
CONTROLLER NUMCHUK OPEN | CONTROLLER NUNCHUK OPEN [n] [,Zinterrupt [,Cinterrupt] ]
CONTROLLER NUNCHUK CLOSE | CONTROLLER NUNCHUK CLOSE [n]
CONTROLS <OPTION> | OPTION CONTROLS nn
COPY | COPY fname1$ TO fname2$
COPY <LONGSTRING> | LONGSTRING COPY dest%(), src%()
COPY <MEMORY> | MEMORY COPY sourceaddress%, destinationaddres%, numberofbytes%
COPY <PAGE> | PAGE COPY n TO m [,when]
COPY <SPRITE> | SPRITE COPY [#]n, [#]m, nbr
COS | COS( radians )
COSH <MATH> | MATH(COSH a)
CPU | CPU RESTART
CPU RESTART | CPU RESTART
CPU SLEEP | CPU SLEEP [ sec [, abortpin]]
CPUSPEED <MM.INFO$> | MM.INFO$( CPUSPEED)
CREATE <DRAW3D> | DRAW3D CREATE nv, nf, camera, vertices(), fc(), faces(), colours() , edge() ,fill()
CREATE <FRAMEBUFFER> | FRAMEBUFFER CREATE HorizontalSize%, VerticalSize%
CRLF <OPTION> | OPTION CRLF CR | LF | CRLF
CSUB | CSUB name [type [, type] ?]
CSUB <END> | END CSUB
CTRLVAL | CTRLVAL(#ref) = value
CURRENT <MM.INFO$> | MM.INFO$( CURRENT)
CURSOR <GUI> | GUI CURSOR x, y
CURSOR COLOUR <GUI> | GUI CURSOR COLOUR cursorcolour
CURSOR HIDE <GUI> | GUI CURSOR HIDE
CURSOR LOAD <GUI> | GUI CURSOR LOAD
CURSOR OFF <GUI> | GUI CURSOR OFF
CURSOR ON <GUI> | GUI CURSOR ON [cursorno [, x, y [,cursorcolour] ] ]
CURSOR SHOW <GUI> | GUI CURSOR SHOW
CWD$ | CWD$

Last edited: 21 November, 2020