Alphabetical Index

Command Category Summary

47xxx EERam Devices

EERAM ( Device )

This section covers the 47xxx EERam devices.

7 Segment Displays - Legacy

7-Segment Displays

The GCBASIC 7 segment display methods make it easier for GCBASIC programs to display numbers and letters on 7 segment LED displays.

7 Segment Displays - TM1637 4 Digits

7-Segment Displays

The TM1637 disaplay module is used for displaying numbers on a keyboard matrix.

7 Segment Displays - TM1637 6 Digits

7-Segment Displays

The TM1637 display module is used for displaying numbers on a keyboard matrix.

7 Segment Displays Overview

7-Segment Displays

The 7 Segment Displays module provide a cheap red, green, blue or white bright LED Display.

Abs

Maths

integer_variable = Abs( integer_variable )

ADFormat (Deprecated - Do not use)

Analog/Digital conversion

ADFormat ( Format_Left | Format_Right )

ADOff

Analog/Digital conversion

This command is obsolete. There should be no need to call it. GCBASIC

ADS 7843 Serial Driver

Touch Screen

ADS7843_Init

Alloc

Variables Operations

Alloc creates a special type of variable - an array variant. This array variant can store values. The values stored in this array variant…​

Analog/Digital Conversion Code Optimisation

Analog/Digital conversion

The analog to digital converter (ADC or A/D) module support is implemented by GCBASIC to provide 8-bit, 10-bit and 12-bit Single channel …​

Analog/Digital Conversion Overview

Analog/Digital conversion

The analog to digital converter (ADC or A/D) module support is implemented by GCBASIC to provide 8-bit, 10-bit and 12-bit Single channel …​

Asc

String Manipulation

bytevar= ASC(string, [position] )

ATMEL AVR PWM Overview

Pulse width modulation

The methods described in this section allow the generation of Pulse

Average

Maths

integer_variable = Average(byte_variable1 , byte_variable2)

BcdToDec_GCB

Variables Operations

BcdToDec_GCB ( ByteVariable )

Bitwise Operations Overview

Bitwise

GCBASIC (as with most other microcontroller programming languages) supports bitwise operations.

Box

Graphical LCD

Box(LineX1,LineY1, LineX2, LineY2 [, LineColour ] )

ByteToBin

String Manipulation

stringvar = ByteToBin(bytevar)

ByteToHex

String Manipulation

stringvar = ByteToHex(number)

ByteToString

String Manipulation

stringvar = ByteToString(byte_variable) 'supports byte.

Chr

String Manipulation

stringvar = CHR(bytevar)

Circle

Graphical LCD

Circle(XPixelPosition, YPixelPosition, Radius [ [,Optional LineColour] [,Optional Rounding] ] )

ClearTimer

Timers

ClearTimer TimerNo

CLS

Liquid Crystal Display

CLS

Common Anode

7-Segment Displays

This is a Common Anode 7 Segment display example.

Common Cathode

7-Segment Displays

This is a Common Cathode 7 Segment display example.

Concatenation

String Manipulation

stringvar = variable1 + variable2

DATA

PROGMEM ( PFM )

DATA DataSetName [as Byte | Word]

Dataset for EEPROM

MCU EEPROM ( DFM )

EEPROM DataSetName [[,]address]

DecToBcd_GCB

Variables Operations

DectoBcd( ByteVariable )

DeviceConfigurationRead

PROGMEM ( MCU Configuration )

deviceconfigurationRead (location, store)

Difference

Maths

Difference ( word_variable1 , word_variable2 ) or

Dim

Variables Operations

Dim variable // will define a Byte variable

Dir

Port control

Dir port.bit {In | Out} (Individual Form)

DisplayChar

7-Segment Displays

DisplayChar (display, character, dot)

DisplaySegment

7-Segment Displays

DisplayValue (display, data)

DisplayValue

7-Segment Displays

DisplayValue (display, data, dot)

Do

Flow control

Do [{While | Until} condition]

DS18B20

One Wire Devices

The DS18B20 is a 1-Wire digital temperature sensor from Maxim IC.

DS18B20SetResolution

One Wire Devices

For Single Channel/Device only. The method assumes a single DS18B20 device on the OneWire bus.

Ellipse

Graphical LCD

Ellipse(XPixelPosition, YPixelPosition, XRadius, YRadius [,Optional LineColour] )

End

Flow control

End

e-Paper Controllers

Graphical LCD

This section covers GLCD devices known as e-Papers.

EPRead

MCU EEPROM ( DFM )

EPRead location, store

EPWrite

MCU EEPROM ( DFM )

EPWrite location, data

Exit

Flow control

Exit Sub | Exit Function | Exit Do | Exit For | Exit Repeat

FastHWSPI2Transfer

SPI

FastHWSPI2Transfer tx

FastHWSPITransfer

SPI

FastHWSPITransfer tx

Fill

String Manipulation

stringvar = Fill ( byte_value_of_the_new_length , pad_character )

FilledBox

Graphical LCD

FilledBox(LineX1,LineY1, LineX2, LineY2, Optional LineColour = 1)

FilledCircle

Graphical LCD

FilledCircle(XPixelPosition, YPixelPosition, Radius [,Optional LineColour] )

FilledEllipse

Graphical LCD

FilledEllipse(XPixelPosition, YPixelPosition, XRadius, YRadius [,Optional LineColour] )

FilledTriangle

Graphical LCD

FilledTriangle( XPixelPosition1, YPixelPosition1, XPixelPosition2, YPixelPosition2, XPixelPosition3, YPixelPosition3 [,Optional LineColou…​

FnLSL

Bitwise

BitsOut = FnLSL(BitsIn, NumBits)

FnLSR

Bitwise

BitsOut = FnLSR(BitsIn, NumBits)

Fonts and Characters

Graphical LCD

This section covers GLCD fonts and characters.

For

Flow control

For counter = start To end [Step increment]

FVRInitialize

Fixed Voltage Reference

FVRInitialize ( FVR_OFF | FVR_1x | FVR_2x | FVR_4x )

FVRIsOutputReady

Fixed Voltage Reference

user_var = FVRIsOutputReady()

Get

Liquid Crystal Display

var = Get(Line, Column)

GetUserID

Miscellaneous Commands

Available on all Microchip microcontrollers that support UserIDs.

GLCD Overview

Graphical LCD

The GLCD commands are used to control a Graphical Liquid Crystal Display (GLCD)

GLCDCLS

Graphical LCD

GLCDCLS [GLCDBackground]

GLCDDisplay

Graphical LCD

GLCDDisplay Off | On

GLCDDrawChar

Graphical LCD

GLCDDrawChar(CharLocX, CharLocY, CharCode [, Optional Colour] )

GLCDDrawString

Graphical LCD

GLCDDrawString(CharLocX, CharLocY, String [, Optional Colour] )

GLCDLocateString

Graphical LCD

GLCDLocateString(PrintLocX, PrintLocY )

GLCDPrint

Graphical LCD

GLCDPrint(PrintLocX, PrintLocY, PrintData_Byte [, Optional Colour] ) ',or

GLCDPrintLargeFont

Graphical LCD

GLCDPrintLargeFont( PrintLocX, PrintLocY, PrintData_String [, Optional Colour] )

GLCDPrintString

Graphical LCD

GLCDPrintString( String )

GLCDPrintStringLn

Graphical LCD

GLCDPrintStringLn( String )

GLCDPrintWithSize

Graphical LCD

GLCDPrintWithSize(PrintLocX, PrintLocY, PrintData_Byte , FontSize [, Color ] ) ',or

GLCDReadByte

Graphical LCD

byte_variable = GLCDReadByte

GLCDRotate

Graphical LCD

GLCDROTATE LANDSCOPE | PORTRAIT_REV | LANDSCAPE_REV | PORTRAIT

GLCDTimeDelay

Graphical LCD

GLCDTime

GLCDTransaction

Graphical LCD

GLCD_Open_PageTransaction

GLCDWriteByte

Graphical LCD

GLCDWriteByte (LCDByte)

Gosub

Flow control

Gosub label

Goto

Flow control

Goto label

Hardware PWM Code Optimisation

Pulse width modulation

For compatibility all channels are supported by default. This is maintains backward compatibility.

HEFEraseBlock

HEFM ( PFM )

HEFEraseBlock ( block_number )

HEFM Overview

HEFM ( PFM )

Some enhanced mid-range Microchip PIC devices support High-Endurance Flash (HEF) memory. These devices lack the data EEPROM found on othe…​

HEFRead

HEFM ( PFM )

'as a subroutine

HEFReadBlock

HEFM ( PFM )

HEFReadBlock ( block_number, buffer(), [, num_bytes] )

HEFReadWord

HEFM ( PFM )

'as a subroutine

HEFWrite

HEFM ( PFM )

HEFWrite ( location, data )

HEFWriteBlock

HEFM ( PFM )

HEFWriteBlock ( block_number, buffer(), [, num_bytes] )

HEFWriteWord

HEFM ( PFM )

HEFWriteWord ( location, data_word_value )

Hex

Deprecated string functions.

stringvar = Hex(number)

HI2C Overview

I2C/TWI Hardware Module

These methods allow GCBASIC programs to send and receive Inter- Integrated Circuit (I2C™) messages via:

HI2CAckPollState

I2C/TWI Hardware Module

<test condition[s]> HI2CAckPollState

HI2CMode

I2C/TWI Hardware Module

HI2CMode Master | Slave

HI2CReceive

I2C/TWI Hardware Module

HI2CReceive data

HI2CRestart

I2C/TWI Hardware Module

HI2CRestart

HI2CSetAddress

I2C/TWI Hardware Module

HI2CSetAddress address_number

HI2CStart

I2C/TWI Hardware Module

HI2CStart

HI2CStartOccurred

I2C/TWI Hardware Module

HI2CStartOccurred

HI2CStop

I2C/TWI Hardware Module

HI2CStop

HI2CStopped

I2C/TWI Hardware Module

HI2CStopped

HI2CWaitMSSP

I2C/TWI Hardware Module

HI2CWaitMSSP

HPWM 10 Bit

Pulse width modulation

HPWM channel, frequency, duty cycle, timer [, resolution]

HPWM 16 Bit

Pulse width modulation

HPWM16 channel, frequency, duty cycle 'Enable a 16-bit PWM channel'

HPWM AVR OCRnx

Pulse width modulation

HPWM channel, frequency, duty cycle

HPWM CCP

Pulse width modulation

HPWM channel, frequency, duty cycle

HPWM Fixed Mode

Pulse width modulation

PWMOn 'only applies to CCP/PWM channel 1

HPWM Fixed Mode for AVR

Pulse width modulation

PWMOn

HPWM_CCPTimerN

Pulse width modulation

HPWM_CCPTimerN channel, frequency, duty cycle [, timer 2, 4 or 6 ]

HPWMOff

Pulse width modulation

HPWMOff ( channel ) 'selectively turn off the CCP channel

HPWMOff

Pulse width modulation

HPWMOff ( channel ) 'selectively turn off the CCP channel

HPWMOff

Pulse width modulation

HPWMOff ( channel, PWMHardware )

HPWMUpdate for CCP/PWM Modules(s)

Pulse width modulation

HPWMUpdate ( channel, duty_cycle )

HPWMUpdate for PWM Module(s)

Pulse width modulation

HPWMUpdate ( channel, duty_cycle )

HSerGetNum

Serial Communications

HSerGetNum myNum ‘Gets a multi digit number from USART 1

HSerGetString

Serial Communications

HSerGetString myString ‘Get a multi char string from USART 1

HSerPrint

Serial Communications

HSerPrint user_value [,1|2|3|4] 'Choose comport with optional parameter

HserPrintByteCRLF

Serial Communications

HserPrintByteCRLF user_data [, 1 | 2 | 3 | 4 ]

HserPrintCRLF

Serial Communications

HserPrintCRLF [optional BYTE] [, 1 | 2 | 3 | 4 ]

HSerPrintStringCRLF

Serial Communications

HSerPrintStringCRLF user_string [,1|2|3|4] 'Choose comport with optional parameter

HSerReceive

Serial Communications

HSerReceive (user_byte_variable)

HSerReceiveFrom

Serial Communications

user_byte = HSerReceiveFrom [,1 | 2 | 3 | 4]

HSerSend

Serial Communications

HSerSend user_byte [,1|2|3|4] 'Choose comport with optional parameter

HSerSendBytes

Serial Communications

HSerSendBytes(byte1, byte2 [, byte3 …​ up to byte16])

HX8347G Controllers

Graphical LCD

This section covers GLCD devices that use the HX8347G graphics controller.

Hyperbole

Graphical LCD

Hyperbole (x, y, a_axis, b_axis, type, ModeStop, optional LineColour=GLCDForeground)

I2C Overview

I2C Software

These software routines allow GCBASIC programs to send and receive I2C

I2CAckpoll

I2C Software

I2CAckpoll ( I2C_device_address )

I2CAckPollState

I2C Software

<test condition> I2CAckPollState

I2CReceive

I2C Software

I2CReceive data

I2CReset

I2C Software

I2CReset

I2CRestart

I2C Software

I2CRestart

I2CSend

I2C Software

I2CSend data

I2CStart

I2C Software

I2CStart

I2CStartoccurred

I2C Software

I2CStartoccurred

I2CStop

I2C Software

I2CStop

If

Flow control

If condition Then command

ILI9326 Controllers

Graphical LCD

This section covers GLCD devices that use the ILI9326 graphics controller. The ILI9326 is a TFT LCD Single Chip Driver with 400RGBx320 Re…​

ILI9340 Controllers

Graphical LCD

This section covers GLCD devices that use the ILI9340 graphics controller. The ILI9340 is a TFT LCD Single Chip Driver with 240RGBx320 Re…​

ILI9341 Controllers

Graphical LCD

This section covers GLCD devices that use the ILI9341 graphics controller. The ILI9341 is a TFT LCD Single Chip Driver with 240RGBx320 Re…​

ILI9481 Controllers

Graphical LCD

This section covers GLCD devices that use the ILI9481 graphics controller.

ILI9486(L) Controllers

Graphical LCD

This section covers GLCD devices that use the ILI9486(L) graphics controller.

ILI9488 Controllers

Graphical LCD

This section covers GLCD devices that use the ILI9488 graphics controller.

IndCall

Flow control

IndCall Address

InitSer

Serial Communications

InitSer channel, rate, start, data, stop, parity, invert

InitTimer0

Timers

InitTimer0 source, prescaler

InitTimer1

Timers

InitTimer1 source, prescaler

InitTimer10

Timers

InitTimer10 prescaler, postscaler

InitTimer12

Timers

InitTimer12 prescaler, postscaler

InitTimer2

Timers

InitTimer2 prescaler, postscaler

InitTimer3

Timers

InitTimer3 source, prescaler

InitTimer4

Timers

InitTimer4 prescaler, postscaler

InitTimer5

Timers

InitTimer5 source, prescaler

InitTimer6

Timers

InitTimer6 prescaler, postscaler

InitTimer7

Timers

InitTimer7 source, prescaler

InitTimer8

Timers

InitTimer8 prescaler, postscaler

InKey

PS/2

output = InKey

Instr

String Manipulation

location = Instr(source, find)

Int

Maths

integer_variable = Int( single_variable )

IntegerToBin

String Manipulation

stringvar = IntegerToBin(integervar)

IntegerToHex

String Manipulation

stringvar = IntegerToHex(number)

IntegerToString

String Manipulation

stringvar = IntegerToString(Integer_variable) 'supports Integer.

Interrupts overview

Interrupts

Interrupts are a feature of many microcontrollers. They allow the

IntOff

Interrupts

IntOff

IntOn

Interrupts

IntOn

Keypad Overview

Keypad

The keypad routines allow for a program to read from a 4 x 4 matrix

KeypadData

Keypad

var = KeypadData

KeypadRaw

Keypad

largevar = KeypadRaw

KS0108 Controllers

Graphical LCD

This section covers GLCD devices that use the KS0108 graphics controller.

LCase

String Manipulation

output = LCase(source)

LCD Overview

Liquid Crystal Display

The LCD routines in this section allow GCBASIC programs to control an

LCDBacklight

Liquid Crystal Display

LCDBacklight ( On | Off )

LCDCmd

Liquid Crystal Display

LCDCMD value

LCDCreateChar

Liquid Crystal Display

LCDCreateChar char, chardata()

LCDCreateGraph

Liquid Crystal Display

LCDCreateGraph value

LCDCursor

Liquid Crystal Display

LCDCursor value

LCDDisplayOff

Liquid Crystal Display

LCDDisplayOff

LCDDisplayOn

Liquid Crystal Display

LCDDisplayOn

LCDHex

Liquid Crystal Display

LCDHex value

LCDHome

Liquid Crystal Display

LCDHome

LCDSpace

Liquid Crystal Display

LCDSpace value

LCDWriteChar

Liquid Crystal Display

LCDWriteChar char

Left

String Manipulation

output = Left(source, count)

LeftPad

String Manipulation

LeftPad(string_variable,byte_value_of_the_new_length,pad_character)

Len

String Manipulation

output= Len( string )

Line

Graphical LCD

Line(LineX1,LineY1, LineX2, LineY2, Optional LineColour = 1)

Locate

Liquid Crystal Display

Locate Line, Column

LockPPS

Port control

LOCKPSS

Log10

Maths

returned_word_variable = Log10 (word_value)

Log2

Maths

returned_word_variable = Log2 ( word_value )

Logarithms

Maths

GCBASIC support logarithmic functions through the include file <maths.h>.

Loge

Maths

returned_word_variable = Loge ( word_value )

LongToBin

String Manipulation

stringvar = LongToBin(longvar)

LongToHex

String Manipulation

stringvar = LongToHex(number)

LongToString

String Manipulation

stringvar = LongToString(Long_variable) 'supports Long.

Ltrim

String Manipulation

stringvar = LTRIM(stringvar)

Microchip PIC PWM Overview

Pulse width modulation

The methods described in this section allow the generation of Pulse

Mid

String Manipulation

output = Mid(source, start[, count])

More on setting Variables and Constants

Variables Operations

Within GCBASIC you can use regular variable assignments. But, you can also use C like maths assignments.

NEC Remote Control

Infrared Remote Control

NECSend address, data

NEXTION Controllers

Graphical LCD

This section covers GLCD devices that use the serially attached Nextion graphics displays.

NT7108C Controllers

Graphical LCD

This section covers GLCD devices that use the NT7108C graphics controller.

On Interrupt

Interrupts

On Interrupt event Call handler

On Interrupt: The default handler

Interrupts

GCBASIC supports a default interrupt handler in two modes:

Overview

Random Numbers

These routines allow GCBASIC to generate pseudo-random numbers.

Pad

String Manipulation

out_string = Pad( string_variable, byte_value_of_the_new_length, pad_character)

Parabola

Graphical LCD

Parabola (x, y, p_factor, type, modestop, optional LineColour=GLCDForeground)

Pause

Flow control

Pause time_ms

PCD8544 Controllers

Graphical LCD

This section covers GLCD devices that use the PCD844 graphics controller.

Peek

Variables Operations

OutputVariable = Peek (location)

Peripheral Pin Select for Microchip microcontrollers.

Port control

Peripheral Pin Select (PPS) enables the digital peripheral I/O pins to be changed to support mapping of external pins to different pins.

PFMRead

PROGMEM ( PFM )

PFMRead (location, store)

PFMWrite

PROGMEM ( PFM )

PFMWrite (location, value)

Play

Sound

Play SoundPlayDataString

Play RTTTL

Sound

PlayRTTTL SoundPlayRTTTLDataString

Poke

Variables Operations

Poke(location, value)

Pot

Analog/Digital conversion

Pot pin, output

Power

Maths

power( base, exponent )

Print

Liquid Crystal Display

Print string

ProgramErase

PROGMEM ( PFM )

ProgramErase (location)

ProgramRead

PROGMEM ( PFM )

ProgramRead (location, store)

ProgramWrite

PROGMEM ( PFM )

ProgramWrite (location, value)

PS/2 Overview

PS/2

These routines make it easier to communicate with a PS/2 device,

PS2ReadByte

PS/2

output = PS2ReadByte

PS2SetKBLeds

PS/2

PS2SetKBLeds (LedStatus)

PS2WriteByte

PS/2

PS2WriteByte user_data

Pset

Graphical LCD

PSet(XPosition, YPosition, GLCDState)

PulseIn

Pulse width modulation

PulseIn pin, user_variable, time units

PulseInInv

Pulse width modulation

PulseInInv pin, user_variable, time units

PulseOut

Pulse width modulation

PulseOut pin, time units

PulseOutInv

Pulse width modulation

PulseOutInv pin, time units

Put

Liquid Crystal Display

Put Line, Column, Character

PWM Software Mode

Pulse width modulation

PWMOut channel, duty cycle, cycles

PWMOff

Pulse width modulation

PWMOff

PWMOff for AVR

Pulse width modulation

PWMOff

PWMOn

Pulse width modulation

PWMOn

PWMOn for AVR

Pulse width modulation

PWMOn

PWMOut

Pulse width modulation

PWMOut channel, duty cycle, cycles

Random

Random Numbers

var = Random

Randomize

Random Numbers

Randomize

RC5 Remote Control

Infrared Remote Control

RC5Send address, data

ReadAD

Analog/Digital conversion

For a normal ( also called a Single Channel ) read use.

ReadAD10

Analog/Digital conversion

For a normal ( also called a Single Channel ) read use.

ReadAD12

Analog/Digital conversion

For a normal ( also called a Single Channel ) read use.

ReadDigitalTemp

One Wire Devices

ReadDigitalTemp

Reading Timers

Timers

GCBASIC has the following macros to read a specific timer value. They

ReadTemp

One Wire Devices

byte_var = ReadTemp

ReadTemp12

One Wire Devices

byte_var = ReadTemp12

Repeat

Flow control

Repeat times

Right

String Manipulation

output = Right(source, count)

Rotate

Variables Operations

Rotate variable {Left | Right} [Simple]

RoundSingle

Maths

rounded_single_value = RoundSingle( single_variable )

RS232 Hardware Overview

Serial Communications

GCBASIC support programs to communicate easily using RS232.

RS232 Software Overview

Serial Communications

These routines allow the microcontroller to send and receive RS232 data.

RS232 Software Overview - Optimised

Serial Communications

These routines allow the microcontroller to send and receive RS232 data.

Rtrim

String Manipulation

stringvar = Rtrim(stringvar)

SAFEraseBlock

SAFM

SAFEraseBlock ( block_number )

SAFM Overview

SAFM

Some Advanced (18F) and some Enhanced Mid-Range (16F) Microchip PIC devices support Storage Area Flash (SAF) memory. These devices also i…​

SAFRead

SAFM

'as a subroutine

SAFReadBlock

SAFM

SAFReadBlock ( block_number, buffer(), [, num_bytes] )

SAFReadWord

SAFM

'as a subroutine

SAFWrite

SAFM

SAFWrite ( location, data )

SAFWriteBlock

SAFM

SAFWriteBlock ( block_number, buffer(), [, num_bytes] )

SAFWriteWord

SAFM

SAFWriteWord ( location, data_word_value )

Scale

Maths

integer_variable = Scale (value_word , fromLow_integer , fromHigh_integer , toLow_integer , toHigh_integer [, calibration_integer] )

SDD1289 Controllers

Graphical LCD

This section covers GLCD devices that use the SDD1289 graphics controller. The SDD1289 is a 240 x 320 single chip controller driver IC fo…​

Select

Flow control

Select Case var

SerNPrint

Serial Communications

Ser1Print value

SerNReceive

Serial Communications

bytevar = Ser1Receive

SerNSend

Serial Communications

Ser1Send data

SerPrint

Serial Communications

SerPrint channel, value

SerReceive

Serial Communications

SerReceive channel, output

SerSend

Serial Communications

SerSend channel, data

Set

Variables Operations

Set variable.bit {On | Off}

Settimer

Timers

Settimer timernumber, byte_value

Setting Variables

Variables Operations


SetWith

Bitwise

SetWith(TargetBit, Source)

SH1106 Controllers

Graphical LCD

This section covers GLCD devices that use the SH1106 graphics controller. THe SH1106 is a single-chip CMOS OLED/PLED driver with controll…​

ShortTone

Sound

ShortTone Frequency, Duration

SingleToBin

String Manipulation

stringvar = SingleToBin(Singlevar)

SingleToHex

String Manipulation

stringvar = SingleToHex(number)

SingleToString

String Manipulation

stringvar = SingleToString(Single_variable) 'supports Single.

SMT Timers

Timers

The Signal Measurement Timer (SMT) capability is a 24-bit counter with advanced clocking and gating logic, which can be configured for me…​

Sound Overview

Sound

These GCBASIC methods generate tones of a given frequency and duration.

SPI Overview

SPI

The SPI interface allows for the transmission and receiption of data simultaneously on two lines (MOSI and MISO).

SPI2Mode

SPI

SPI2Mode ( Mode [, SPIClockMode])

SPI2Transfer

SPI

SPI2Transfer tx, rx

SPIMode

SPI

SPIMode ( Mode [, SPIClockMode])

SPITransfer

SPI

SPITransfer tx, rx

Sqrt

Maths

word_variable = sqrt ( word )

SRAM Overview

SRAM ( Device )

Serial SRAM is a standalone volatile memory that provides an easy and inexpensive way to add more RAM to application. These are 8-pin low…​

SRAMRead

SRAM ( Device )

SRAMRead location, store

SRAMWrite

SRAM ( Device )

SRAMWrite location, data

SSD1306 Controllers

Graphical LCD

This section covers GLCD devices that use the SSD1306 graphics controller.

SSD1331 Controllers

Graphical LCD

This section covers GLCD devices that use the SSD1331 graphics controller. The SSD1331 is a single-chip controller/driver for 262K-color,…​

SSD1351 Controllers

Graphical LCD

This section covers GLCD devices that use the SSD1351 graphics controller. The SSD1351 is a single-chip controller/driver for 262K-color,…​

ST7567 Controllers

Graphical LCD

This section covers GLCD devices that use the ST7567 graphics controller.

ST7735 Controllers

Graphical LCD

This section covers GLCD devices that use the ST7735 graphics controller. The ST7735 or ST7735R is a single-chip controller/driver for 26…​

ST7789 Controllers

Graphical LCD

This section covers GLCD devices that use the ST7789 graphics controller. The ST7789 is a TFT LCD Single Chip Driver with 240x240 or 320x…​

ST7920 Controllers

Graphical LCD

This section covers GLCD devices that use the ST7920 graphics controller.

StartTimer

Timers

StartTimer TimerNo

StopTimer

Timers

StopTimer TimerNo

Str

Deprecated string functions.

stringvar = Str(number) 'supports decimal byte and word strings only.

StringToByte

String Manipulation

var = StringToByte(string) 'Supports decimal byte range strings only.

StringToLong

String Manipulation

var = StringToLong(string) 'Supports decimal Long range strings only.

StringToSingle

String Manipulation

var = StringToSingle(string) 'Supports decimal Single range strings only.

StringToWord

String Manipulation

var = StringToWord(string) 'Supports decimal Word range strings only.

SWAP

Variables Operations

SWAP( VariableA, VariableB)

SWAP4

Variables Operations

SWAP4( VariableA)

T6963 Controllers

Graphical LCD

This section covers Graphical Liquid Crystal Display (GLCD) devices that use the Toshiba T6963 graphics controller. The T6963 is a monoch…​

Timer Overview

Timers

GCBASIC supports methods to set, clear, read, start and stop the microcontroller timers.

TM_Bright

7-Segment Displays

TM_Bright = Brightness

TM_Bright

7-Segment Displays

TM_Bright = Brightness

TM_Point

7-Segment Displays

TM_Point = (Point)

TMDec

7-Segment Displays

TMDec Value [, Options ]

TMDec

7-Segment Displays

TMDec Value [, Options ]

TMHex

7-Segment Displays

TMHex Value

TMHex

7-Segment Displays

TMHex Value

TMWrite4Dig

7-Segment Displays

TMWrite4Dig (dig1, dig2, dig3, dig4 [, Brightness ], Colon ] ] )

TMWrite6Dig

7-Segment Displays

TMWrite6Dig (dig1, dig2, dig3, dig4, dig5, dig6, Brightness, Point)

TMWriteChar

7-Segment Displays

TMWriteChar ( TMaddr, TMchar )

TMWriteChar

7-Segment Displays

TMWriteChar ( TMaddr, TMchar )

Tone

Sound

Tone Frequency, Duration

Triangle

Graphical LCD

Triangle(XPixelPosition1, YPixelPosition1, XPixelPosition2, YPixelPosition2, XPixelPosition3, YPixelPosition3 [,Optional LineColour] )

Trigonometry ATAN

Maths

GCBASIC supports the trigonometric function for ATan.

Trigonometry Sine, Cosine and Tangent

Maths

GCBASIC supports Three Primary Trigonometric Functions

Trim

String Manipulation

stringvar = Trim(stringvar)

UC1601 Controllers

Graphical LCD

This section covers GLCD devices that use the UC1601 graphics controller.

UCase

String Manipulation

output = UCase(source)

ULongIntToBin

String Manipulation

stringvar = ULongIntToBin(ULongIntvar)

UnLockPPS

Port control

UNLOCKPPS

Using Variables

Variables Operations

Using and accessing bytes within word and long numbers etc may be required when you are creating your solution. This can be done with som…​

Val

Deprecated string functions.

var = Val(string) 'Supports decimal byte and word strings only.

Variable Lifecycle

Variables Operations

Within GCBASIC you can use variables. This section details the Variable Lifecycle when using variables.

Wait

Flow control

Wait time units

Weak Pullups

Port control

Weak pullups provide a method within many microcontrollers such as the Atmel AVR and Microchip PIC microcontrollers to support internal/s…​

WordToBin

String Manipulation

stringvar = WordToBin(bytevar)

WordToHex

String Manipulation

stringvar = WordToHex(number)

WordToString

String Manipulation

stringvar = WordToString(Word_variable) 'supports Word.