| Command | Category | Summary |
|---|---|---|
|
EERAM ( Device ) |
This section covers the 47xxx EERam devices. |
|
|
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 |
The TM1637 disaplay module is used for displaying numbers on a keyboard matrix. |
|
|
7-Segment Displays |
The TM1637 display module is used for displaying numbers on a keyboard matrix. |
|
|
7-Segment Displays |
The 7 Segment Displays module provide a cheap red, green, blue or white bright LED Display. |
|
|
Maths |
integer_variable = Abs( integer_variable ) |
|
|
Analog/Digital conversion |
ADFormat ( Format_Left | Format_Right ) |
|
|
Analog/Digital conversion |
This command is obsolete. There should be no need to call it. GCBASIC |
|
|
Touch Screen |
ADS7843_Init |
|
|
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 |
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 |
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 … |
|
|
String Manipulation |
bytevar= ASC(string, [position] ) |
|
|
Pulse width modulation |
The methods described in this section allow the generation of Pulse |
|
|
Maths |
integer_variable = Average(byte_variable1 , byte_variable2) |
|
|
Variables Operations |
BcdToDec_GCB ( ByteVariable ) |
|
|
Bitwise |
GCBASIC (as with most other microcontroller programming languages) supports bitwise operations. |
|
|
Graphical LCD |
Box(LineX1,LineY1, LineX2, LineY2 [, LineColour ] ) |
|
|
String Manipulation |
stringvar = ByteToBin(bytevar) |
|
|
String Manipulation |
stringvar = ByteToHex(number) |
|
|
String Manipulation |
stringvar = ByteToString(byte_variable) 'supports byte. |
|
|
String Manipulation |
stringvar = CHR(bytevar) |
|
|
Graphical LCD |
Circle(XPixelPosition, YPixelPosition, Radius [ [,Optional LineColour] [,Optional Rounding] ] ) |
|
|
Timers |
ClearTimer TimerNo |
|
|
Liquid Crystal Display |
CLS |
|
|
7-Segment Displays |
This is a Common Anode 7 Segment display example. |
|
|
7-Segment Displays |
This is a Common Cathode 7 Segment display example. |
|
|
String Manipulation |
stringvar = variable1 + variable2 |
|
|
PROGMEM ( PFM ) |
DATA DataSetName [as Byte | Word] |
|
|
MCU EEPROM ( DFM ) |
EEPROM DataSetName [[,]address] |
|
|
Variables Operations |
DectoBcd( ByteVariable ) |
|
|
PROGMEM ( MCU Configuration ) |
deviceconfigurationRead (location, store) |
|
|
Maths |
Difference ( word_variable1 , word_variable2 ) or |
|
|
Variables Operations |
Dim variable // will define a Byte variable |
|
|
Port control |
Dir port.bit {In | Out} (Individual Form) |
|
|
7-Segment Displays |
DisplayChar (display, character, dot) |
|
|
7-Segment Displays |
DisplayValue (display, data) |
|
|
7-Segment Displays |
DisplayValue (display, data, dot) |
|
|
Flow control |
Do [{While | Until} condition] |
|
|
One Wire Devices |
The DS18B20 is a 1-Wire digital temperature sensor from Maxim IC. |
|
|
One Wire Devices |
For Single Channel/Device only. The method assumes a single DS18B20 device on the OneWire bus. |
|
|
Graphical LCD |
Ellipse(XPixelPosition, YPixelPosition, XRadius, YRadius [,Optional LineColour] ) |
|
|
Flow control |
End |
|
|
Graphical LCD |
This section covers GLCD devices known as e-Papers. |
|
|
MCU EEPROM ( DFM ) |
EPRead location, store |
|
|
MCU EEPROM ( DFM ) |
EPWrite location, data |
|
|
Flow control |
Exit Sub | Exit Function | Exit Do | Exit For | Exit Repeat |
|
|
SPI |
FastHWSPI2Transfer tx |
|
|
SPI |
FastHWSPITransfer tx |
|
|
String Manipulation |
stringvar = Fill ( byte_value_of_the_new_length , pad_character ) |
|
|
Graphical LCD |
FilledBox(LineX1,LineY1, LineX2, LineY2, Optional LineColour = 1) |
|
|
Graphical LCD |
FilledCircle(XPixelPosition, YPixelPosition, Radius [,Optional LineColour] ) |
|
|
Graphical LCD |
FilledEllipse(XPixelPosition, YPixelPosition, XRadius, YRadius [,Optional LineColour] ) |
|
|
Graphical LCD |
FilledTriangle( XPixelPosition1, YPixelPosition1, XPixelPosition2, YPixelPosition2, XPixelPosition3, YPixelPosition3 [,Optional LineColou… |
|
|
Bitwise |
BitsOut = FnLSL(BitsIn, NumBits) |
|
|
Bitwise |
BitsOut = FnLSR(BitsIn, NumBits) |
|
|
Graphical LCD |
This section covers GLCD fonts and characters. |
|
|
Flow control |
For counter = start To end [Step increment] |
|
|
Fixed Voltage Reference |
FVRInitialize ( FVR_OFF | FVR_1x | FVR_2x | FVR_4x ) |
|
|
Fixed Voltage Reference |
user_var = FVRIsOutputReady() |
|
|
Liquid Crystal Display |
var = Get(Line, Column) |
|
|
Miscellaneous Commands |
Available on all Microchip microcontrollers that support UserIDs. |
|
|
Graphical LCD |
The GLCD commands are used to control a Graphical Liquid Crystal Display (GLCD) |
|
|
Graphical LCD |
GLCDCLS [GLCDBackground] |
|
|
Graphical LCD |
GLCDDisplay Off | On |
|
|
Graphical LCD |
GLCDDrawChar(CharLocX, CharLocY, CharCode [, Optional Colour] ) |
|
|
Graphical LCD |
GLCDDrawString(CharLocX, CharLocY, String [, Optional Colour] ) |
|
|
Graphical LCD |
GLCDLocateString(PrintLocX, PrintLocY ) |
|
|
Graphical LCD |
GLCDPrint(PrintLocX, PrintLocY, PrintData_Byte [, Optional Colour] ) ',or |
|
|
Graphical LCD |
GLCDPrintLargeFont( PrintLocX, PrintLocY, PrintData_String [, Optional Colour] ) |
|
|
Graphical LCD |
GLCDPrintString( String ) |
|
|
Graphical LCD |
GLCDPrintStringLn( String ) |
|
|
Graphical LCD |
GLCDPrintWithSize(PrintLocX, PrintLocY, PrintData_Byte , FontSize [, Color ] ) ',or |
|
|
Graphical LCD |
byte_variable = GLCDReadByte |
|
|
Graphical LCD |
GLCDROTATE LANDSCOPE | PORTRAIT_REV | LANDSCAPE_REV | PORTRAIT |
|
|
Graphical LCD |
GLCDTime |
|
|
Graphical LCD |
GLCD_Open_PageTransaction |
|
|
Graphical LCD |
GLCDWriteByte (LCDByte) |
|
|
Flow control |
Gosub label |
|
|
Flow control |
Goto label |
|
|
Pulse width modulation |
For compatibility all channels are supported by default. This is maintains backward compatibility. |
|
|
HEFM ( PFM ) |
HEFEraseBlock ( block_number ) |
|
|
HEFM ( PFM ) |
Some enhanced mid-range Microchip PIC devices support High-Endurance Flash (HEF) memory. These devices lack the data EEPROM found on othe… |
|
|
HEFM ( PFM ) |
'as a subroutine |
|
|
HEFM ( PFM ) |
HEFReadBlock ( block_number, buffer(), [, num_bytes] ) |
|
|
HEFM ( PFM ) |
'as a subroutine |
|
|
HEFM ( PFM ) |
HEFWrite ( location, data ) |
|
|
HEFM ( PFM ) |
HEFWriteBlock ( block_number, buffer(), [, num_bytes] ) |
|
|
HEFM ( PFM ) |
HEFWriteWord ( location, data_word_value ) |
|
|
Deprecated string functions. |
stringvar = Hex(number) |
|
|
I2C/TWI Hardware Module |
These methods allow GCBASIC programs to send and receive Inter- Integrated Circuit (I2C™) messages via: |
|
|
I2C/TWI Hardware Module |
<test condition[s]> HI2CAckPollState |
|
|
I2C/TWI Hardware Module |
HI2CMode Master | Slave |
|
|
I2C/TWI Hardware Module |
HI2CReceive data |
|
|
I2C/TWI Hardware Module |
HI2CRestart |
|
|
I2C/TWI Hardware Module |
HI2CSetAddress address_number |
|
|
I2C/TWI Hardware Module |
HI2CStart |
|
|
I2C/TWI Hardware Module |
HI2CStartOccurred |
|
|
I2C/TWI Hardware Module |
HI2CStop |
|
|
I2C/TWI Hardware Module |
HI2CStopped |
|
|
I2C/TWI Hardware Module |
HI2CWaitMSSP |
|
|
Pulse width modulation |
HPWM channel, frequency, duty cycle, timer [, resolution] |
|
|
Pulse width modulation |
HPWM16 channel, frequency, duty cycle 'Enable a 16-bit PWM channel' |
|
|
Pulse width modulation |
HPWM channel, frequency, duty cycle |
|
|
Pulse width modulation |
HPWM channel, frequency, duty cycle |
|
|
Pulse width modulation |
PWMOn 'only applies to CCP/PWM channel 1 |
|
|
Pulse width modulation |
PWMOn |
|
|
Pulse width modulation |
HPWM_CCPTimerN channel, frequency, duty cycle [, timer 2, 4 or 6 ] |
|
|
Pulse width modulation |
HPWMOff ( channel ) 'selectively turn off the CCP channel |
|
|
Pulse width modulation |
HPWMOff ( channel ) 'selectively turn off the CCP channel |
|
|
Pulse width modulation |
HPWMOff ( channel, PWMHardware ) |
|
|
Pulse width modulation |
HPWMUpdate ( channel, duty_cycle ) |
|
|
Pulse width modulation |
HPWMUpdate ( channel, duty_cycle ) |
|
|
Serial Communications |
HSerGetNum myNum ‘Gets a multi digit number from USART 1 |
|
|
Serial Communications |
HSerGetString myString ‘Get a multi char string from USART 1 |
|
|
Serial Communications |
HSerPrint user_value [,1|2|3|4] 'Choose comport with optional parameter |
|
|
Serial Communications |
HserPrintByteCRLF user_data [, 1 | 2 | 3 | 4 ] |
|
|
Serial Communications |
HserPrintCRLF [optional BYTE] [, 1 | 2 | 3 | 4 ] |
|
|
Serial Communications |
HSerPrintStringCRLF user_string [,1|2|3|4] 'Choose comport with optional parameter |
|
|
Serial Communications |
HSerReceive (user_byte_variable) |
|
|
Serial Communications |
user_byte = HSerReceiveFrom [,1 | 2 | 3 | 4] |
|
|
Serial Communications |
HSerSend user_byte [,1|2|3|4] 'Choose comport with optional parameter |
|
|
Serial Communications |
HSerSendBytes(byte1, byte2 [, byte3 … up to byte16]) |
|
|
Graphical LCD |
This section covers GLCD devices that use the HX8347G graphics controller. |
|
|
Graphical LCD |
Hyperbole (x, y, a_axis, b_axis, type, ModeStop, optional LineColour=GLCDForeground) |
|
|
I2C Software |
These software routines allow GCBASIC programs to send and receive I2C |
|
|
I2C Software |
I2CAckpoll ( I2C_device_address ) |
|
|
I2C Software |
<test condition> I2CAckPollState |
|
|
I2C Software |
I2CReceive data |
|
|
I2C Software |
I2CReset |
|
|
I2C Software |
I2CRestart |
|
|
I2C Software |
I2CSend data |
|
|
I2C Software |
I2CStart |
|
|
I2C Software |
I2CStartoccurred |
|
|
I2C Software |
I2CStop |
|
|
Flow control |
If condition Then command |
|
|
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… |
|
|
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… |
|
|
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… |
|
|
Graphical LCD |
This section covers GLCD devices that use the ILI9481 graphics controller. |
|
|
Graphical LCD |
This section covers GLCD devices that use the ILI9486(L) graphics controller. |
|
|
Graphical LCD |
This section covers GLCD devices that use the ILI9488 graphics controller. |
|
|
Flow control |
IndCall Address |
|
|
Serial Communications |
InitSer channel, rate, start, data, stop, parity, invert |
|
|
Timers |
InitTimer0 source, prescaler |
|
|
Timers |
InitTimer1 source, prescaler |
|
|
Timers |
InitTimer10 prescaler, postscaler |
|
|
Timers |
InitTimer12 prescaler, postscaler |
|
|
Timers |
InitTimer2 prescaler, postscaler |
|
|
Timers |
InitTimer3 source, prescaler |
|
|
Timers |
InitTimer4 prescaler, postscaler |
|
|
Timers |
InitTimer5 source, prescaler |
|
|
Timers |
InitTimer6 prescaler, postscaler |
|
|
Timers |
InitTimer7 source, prescaler |
|
|
Timers |
InitTimer8 prescaler, postscaler |
|
|
PS/2 |
output = InKey |
|
|
String Manipulation |
location = Instr(source, find) |
|
|
Maths |
integer_variable = Int( single_variable ) |
|
|
String Manipulation |
stringvar = IntegerToBin(integervar) |
|
|
String Manipulation |
stringvar = IntegerToHex(number) |
|
|
String Manipulation |
stringvar = IntegerToString(Integer_variable) 'supports Integer. |
|
|
Interrupts |
Interrupts are a feature of many microcontrollers. They allow the |
|
|
Interrupts |
IntOff |
|
|
Interrupts |
IntOn |
|
|
Keypad |
The keypad routines allow for a program to read from a 4 x 4 matrix |
|
|
Keypad |
var = KeypadData |
|
|
Keypad |
largevar = KeypadRaw |
|
|
Graphical LCD |
This section covers GLCD devices that use the KS0108 graphics controller. |
|
|
String Manipulation |
output = LCase(source) |
|
|
Liquid Crystal Display |
The LCD routines in this section allow GCBASIC programs to control an |
|
|
Liquid Crystal Display |
LCDBacklight ( On | Off ) |
|
|
Liquid Crystal Display |
LCDCMD value |
|
|
Liquid Crystal Display |
LCDCreateChar char, chardata() |
|
|
Liquid Crystal Display |
LCDCreateGraph value |
|
|
Liquid Crystal Display |
LCDCursor value |
|
|
Liquid Crystal Display |
LCDDisplayOff |
|
|
Liquid Crystal Display |
LCDDisplayOn |
|
|
Liquid Crystal Display |
LCDHex value |
|
|
Liquid Crystal Display |
LCDHome |
|
|
Liquid Crystal Display |
LCDSpace value |
|
|
Liquid Crystal Display |
LCDWriteChar char |
|
|
String Manipulation |
output = Left(source, count) |
|
|
String Manipulation |
LeftPad(string_variable,byte_value_of_the_new_length,pad_character) |
|
|
String Manipulation |
output= Len( string ) |
|
|
Graphical LCD |
Line(LineX1,LineY1, LineX2, LineY2, Optional LineColour = 1) |
|
|
Liquid Crystal Display |
Locate Line, Column |
|
|
Port control |
LOCKPSS |
|
|
Maths |
returned_word_variable = Log10 (word_value) |
|
|
Maths |
returned_word_variable = Log2 ( word_value ) |
|
|
Maths |
GCBASIC support logarithmic functions through the include file <maths.h>. |
|
|
Maths |
returned_word_variable = Loge ( word_value ) |
|
|
String Manipulation |
stringvar = LongToBin(longvar) |
|
|
String Manipulation |
stringvar = LongToHex(number) |
|
|
String Manipulation |
stringvar = LongToString(Long_variable) 'supports Long. |
|
|
String Manipulation |
stringvar = LTRIM(stringvar) |
|
|
Pulse width modulation |
The methods described in this section allow the generation of Pulse |
|
|
String Manipulation |
output = Mid(source, start[, count]) |
|
|
Variables Operations |
Within GCBASIC you can use regular variable assignments. But, you can also use C like maths assignments. |
|
|
Infrared Remote Control |
NECSend address, data |
|
|
Graphical LCD |
This section covers GLCD devices that use the serially attached Nextion graphics displays. |
|
|
Graphical LCD |
This section covers GLCD devices that use the NT7108C graphics controller. |
|
|
Interrupts |
On Interrupt event Call handler |
|
|
Interrupts |
GCBASIC supports a default interrupt handler in two modes: |
|
|
Random Numbers |
These routines allow GCBASIC to generate pseudo-random numbers. |
|
|
String Manipulation |
out_string = Pad( string_variable, byte_value_of_the_new_length, pad_character) |
|
|
Graphical LCD |
Parabola (x, y, p_factor, type, modestop, optional LineColour=GLCDForeground) |
|
|
Flow control |
Pause time_ms |
|
|
Graphical LCD |
This section covers GLCD devices that use the PCD844 graphics controller. |
|
|
Variables Operations |
OutputVariable = Peek (location) |
|
|
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. |
|
|
PROGMEM ( PFM ) |
PFMRead (location, store) |
|
|
PROGMEM ( PFM ) |
PFMWrite (location, value) |
|
|
Sound |
Play SoundPlayDataString |
|
|
Sound |
PlayRTTTL SoundPlayRTTTLDataString |
|
|
Variables Operations |
Poke(location, value) |
|
|
Analog/Digital conversion |
Pot pin, output |
|
|
Maths |
power( base, exponent ) |
|
|
Liquid Crystal Display |
Print string |
|
|
PROGMEM ( PFM ) |
ProgramErase (location) |
|
|
PROGMEM ( PFM ) |
ProgramRead (location, store) |
|
|
PROGMEM ( PFM ) |
ProgramWrite (location, value) |
|
|
PS/2 |
These routines make it easier to communicate with a PS/2 device, |
|
|
PS/2 |
output = PS2ReadByte |
|
|
PS/2 |
PS2SetKBLeds (LedStatus) |
|
|
PS/2 |
PS2WriteByte user_data |
|
|
Graphical LCD |
PSet(XPosition, YPosition, GLCDState) |
|
|
Pulse width modulation |
PulseIn pin, user_variable, time units |
|
|
Pulse width modulation |
PulseInInv pin, user_variable, time units |
|
|
Pulse width modulation |
PulseOut pin, time units |
|
|
Pulse width modulation |
PulseOutInv pin, time units |
|
|
Liquid Crystal Display |
Put Line, Column, Character |
|
|
Pulse width modulation |
PWMOut channel, duty cycle, cycles |
|
|
Pulse width modulation |
PWMOff |
|
|
Pulse width modulation |
PWMOff |
|
|
Pulse width modulation |
PWMOn |
|
|
Pulse width modulation |
PWMOn |
|
|
Pulse width modulation |
PWMOut channel, duty cycle, cycles |
|
|
Random Numbers |
var = Random |
|
|
Random Numbers |
Randomize |
|
|
Infrared Remote Control |
RC5Send address, data |
|
|
Analog/Digital conversion |
For a normal ( also called a Single Channel ) read use. |
|
|
Analog/Digital conversion |
For a normal ( also called a Single Channel ) read use. |
|
|
Analog/Digital conversion |
For a normal ( also called a Single Channel ) read use. |
|
|
One Wire Devices |
ReadDigitalTemp |
|
|
Timers |
GCBASIC has the following macros to read a specific timer value. They |
|
|
One Wire Devices |
byte_var = ReadTemp |
|
|
One Wire Devices |
byte_var = ReadTemp12 |
|
|
Flow control |
Repeat times |
|
|
String Manipulation |
output = Right(source, count) |
|
|
Variables Operations |
Rotate variable {Left | Right} [Simple] |
|
|
Maths |
rounded_single_value = RoundSingle( single_variable ) |
|
|
Serial Communications |
GCBASIC support programs to communicate easily using RS232. |
|
|
Serial Communications |
These routines allow the microcontroller to send and receive RS232 data. |
|
|
Serial Communications |
These routines allow the microcontroller to send and receive RS232 data. |
|
|
String Manipulation |
stringvar = Rtrim(stringvar) |
|
|
SAFM |
SAFEraseBlock ( block_number ) |
|
|
SAFM |
Some Advanced (18F) and some Enhanced Mid-Range (16F) Microchip PIC devices support Storage Area Flash (SAF) memory. These devices also i… |
|
|
SAFM |
'as a subroutine |
|
|
SAFM |
SAFReadBlock ( block_number, buffer(), [, num_bytes] ) |
|
|
SAFM |
'as a subroutine |
|
|
SAFM |
SAFWrite ( location, data ) |
|
|
SAFM |
SAFWriteBlock ( block_number, buffer(), [, num_bytes] ) |
|
|
SAFM |
SAFWriteWord ( location, data_word_value ) |
|
|
Maths |
integer_variable = Scale (value_word , fromLow_integer , fromHigh_integer , toLow_integer , toHigh_integer [, calibration_integer] ) |
|
|
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… |
|
|
Flow control |
Select Case var |
|
|
Serial Communications |
Ser1Print value |
|
|
Serial Communications |
bytevar = Ser1Receive |
|
|
Serial Communications |
Ser1Send data |
|
|
Serial Communications |
SerPrint channel, value |
|
|
Serial Communications |
SerReceive channel, output |
|
|
Serial Communications |
SerSend channel, data |
|
|
Variables Operations |
Set variable.bit {On | Off} |
|
|
Timers |
Settimer timernumber, byte_value |
|
|
Variables Operations |
|
|
|
Bitwise |
SetWith(TargetBit, Source) |
|
|
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… |
|
|
Sound |
ShortTone Frequency, Duration |
|
|
String Manipulation |
stringvar = SingleToBin(Singlevar) |
|
|
String Manipulation |
stringvar = SingleToHex(number) |
|
|
String Manipulation |
stringvar = SingleToString(Single_variable) 'supports Single. |
|
|
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 |
These GCBASIC methods generate tones of a given frequency and duration. |
|
|
SPI |
The SPI interface allows for the transmission and receiption of data simultaneously on two lines (MOSI and MISO). |
|
|
SPI |
SPI2Mode ( Mode [, SPIClockMode]) |
|
|
SPI |
SPI2Transfer tx, rx |
|
|
SPI |
SPIMode ( Mode [, SPIClockMode]) |
|
|
SPI |
SPITransfer tx, rx |
|
|
Maths |
word_variable = sqrt ( word ) |
|
|
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… |
|
|
SRAM ( Device ) |
SRAMRead location, store |
|
|
SRAM ( Device ) |
SRAMWrite location, data |
|
|
Graphical LCD |
This section covers GLCD devices that use the SSD1306 graphics controller. |
|
|
Graphical LCD |
This section covers GLCD devices that use the SSD1331 graphics controller. The SSD1331 is a single-chip controller/driver for 262K-color,… |
|
|
Graphical LCD |
This section covers GLCD devices that use the SSD1351 graphics controller. The SSD1351 is a single-chip controller/driver for 262K-color,… |
|
|
Graphical LCD |
This section covers GLCD devices that use the ST7567 graphics controller. |
|
|
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… |
|
|
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… |
|
|
Graphical LCD |
This section covers GLCD devices that use the ST7920 graphics controller. |
|
|
Timers |
StartTimer TimerNo |
|
|
Timers |
StopTimer TimerNo |
|
|
Deprecated string functions. |
stringvar = Str(number) 'supports decimal byte and word strings only. |
|
|
String Manipulation |
var = StringToByte(string) 'Supports decimal byte range strings only. |
|
|
String Manipulation |
var = StringToLong(string) 'Supports decimal Long range strings only. |
|
|
String Manipulation |
var = StringToSingle(string) 'Supports decimal Single range strings only. |
|
|
String Manipulation |
var = StringToWord(string) 'Supports decimal Word range strings only. |
|
|
Variables Operations |
SWAP( VariableA, VariableB) |
|
|
Variables Operations |
SWAP4( VariableA) |
|
|
Graphical LCD |
This section covers Graphical Liquid Crystal Display (GLCD) devices that use the Toshiba T6963 graphics controller. The T6963 is a monoch… |
|
|
Timers |
GCBASIC supports methods to set, clear, read, start and stop the microcontroller timers. |
|
|
7-Segment Displays |
TM_Bright = Brightness |
|
|
7-Segment Displays |
TM_Bright = Brightness |
|
|
7-Segment Displays |
TM_Point = (Point) |
|
|
7-Segment Displays |
TMDec Value [, Options ] |
|
|
7-Segment Displays |
TMDec Value [, Options ] |
|
|
7-Segment Displays |
TMHex Value |
|
|
7-Segment Displays |
TMHex Value |
|
|
7-Segment Displays |
TMWrite4Dig (dig1, dig2, dig3, dig4 [, Brightness ], Colon ] ] ) |
|
|
7-Segment Displays |
TMWrite6Dig (dig1, dig2, dig3, dig4, dig5, dig6, Brightness, Point) |
|
|
7-Segment Displays |
TMWriteChar ( TMaddr, TMchar ) |
|
|
7-Segment Displays |
TMWriteChar ( TMaddr, TMchar ) |
|
|
Sound |
Tone Frequency, Duration |
|
|
Graphical LCD |
Triangle(XPixelPosition1, YPixelPosition1, XPixelPosition2, YPixelPosition2, XPixelPosition3, YPixelPosition3 [,Optional LineColour] ) |
|
|
Maths |
GCBASIC supports the trigonometric function for ATan. |
|
|
Maths |
GCBASIC supports Three Primary Trigonometric Functions |
|
|
String Manipulation |
stringvar = Trim(stringvar) |
|
|
Graphical LCD |
This section covers GLCD devices that use the UC1601 graphics controller. |
|
|
String Manipulation |
output = UCase(source) |
|
|
String Manipulation |
stringvar = ULongIntToBin(ULongIntvar) |
|
|
Port control |
UNLOCKPPS |
|
|
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… |
|
|
Deprecated string functions. |
var = Val(string) 'Supports decimal byte and word strings only. |
|
|
Variables Operations |
Within GCBASIC you can use variables. This section details the Variable Lifecycle when using variables. |
|
|
Flow control |
Wait time units |
|
|
Port control |
Weak pullups provide a method within many microcontrollers such as the Atmel AVR and Microchip PIC microcontrollers to support internal/s… |
|
|
String Manipulation |
stringvar = WordToBin(bytevar) |
|
|
String Manipulation |
stringvar = WordToHex(number) |
|
|
String Manipulation |
stringvar = WordToString(Word_variable) 'supports Word. |

