Cronus GPC Documentation
Cronus Community
GPC Library
GPC Guide
Search…
Welcome
Introduction
GPC Explained
What's New with Zen?
Basic Syntax
A Simple Tutorial
Style Guide
GPC Structure
Basic GPC Structure
Definitions
Data Section
Remapping
Variables
Init Section
Main Section
Combo Section
User Created Functions
GPC Programming Basics
Constants
Flow Control
Persistent Memory
Operator Types
Identifiers
Functions & Commands
Internal Functions
Console Functions
Controller Functions
Keyboard Functions
GPC Examples
#1
Powered By
GitBook
What's New with Zen?
All new opcodes and commands exclusive to the new Cronus Zen.
Keyboard Functions
Function
Description
​
get_keyboard
​
Checks if a chosen keyboard key is held down
​
get_modifiers
​
Checks if a chosen keyboard modifier is held down (ALT, SHIFT,CTRL, etc.)
OLED Display Functions
Function
Description
printf
Draws a defined string onto the OLED screen
circle_oled
Draws a chosen set of pixels that will create a circular shape on the OLED screen
line_oled
Draws a line of pixels in any direction on the OLED screen
pixel_oled
Draws a pixel on the OLED screen
cls_oled
Clears the OLED screen
putc_oled
Places a single ASCII character at a position on the OLED screen
puts_oled
Draws the text on the OLED screen
rect_oled
Draws a square shape on the OLED screen
Controller Functions
Function
Description
set_polar
Moves the analog stick based on a given radius and angle (currently RS only)
set_remapper
Remaps controller buttons on-the-fly within the
main
function
get_ival
Gets the input value of a button to check if it has been modified by the script.
Device Functions
Function
Description
save_eeprom
Saves the current eeprom/SPVAR settings
set_hsb
Choose from a HSB (Hue (tint), saturation (absorbance), brightness (lightness)) colour pallete to display on the LED Lights
set_rgb
Choose from a RGB (Red, Green, Blue) colour pallete to display on the LED Lights
Math Functions
Function
Description
random
Returns a random number between min and max range
Introduction - Previous
GPC Explained
Next
Basic Syntax
Last modified
2yr ago
Copy link
Outline
Keyboard Functions
OLED Display Functions
Controller Functions
Device Functions
Math Functions