Cronus GPC Documentation
Cronus CommunityGPC LibraryGPC Guide
  • 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
    • Zen
      • OLED
      • ASCII Constants
      • PIO
    • Keyboard
      • Keyboard
    • Controller
      • Polar
      • LED
      • Rumble
      • PS3
      • PS4
      • XBox 360
      • Xbox One
      • Nintendo WII
      • Nintendo Switch
    • Racing Wheel
      • G29
      • G27
      • G25
      • DF
      • DF GT
      • DF Pro
    • Trace
    • Memory
    • Misc
  • Flow Control
  • Persistent Memory
  • Operator Types
  • Identifiers
  • Functions & Commands
    • Internal Functions
      • Bit Functions
      • Combo Functions
      • Math Functions
      • Device Functions
      • OLED Display Functions
    • Console Functions
      • Core Console Functions
    • Controller Functions
      • Core Controller Functions
      • Rumble Functions
      • LED Functions
    • Keyboard Functions
      • Core Keyboard Functions
  • GPC Examples
    • #1
Powered by GitBook
On this page
  • Keyboard Functions
  • OLED Display Functions
  • Controller Functions
  • Device Functions
  • Math Functions

Was this helpful?

  1. Introduction

What's New with Zen?

All new opcodes and commands exclusive to the new Cronus Zen.

Keyboard Functions

Function

Description

Checks if a chosen keyboard key is held down

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

PreviousGPC ExplainedNextBasic Syntax

Last updated 5 years ago

Was this helpful?

get_keyboard
get_modifiers