Internal Functions
Within this section of the manual you will find the functions and commands the Virtual Machine uses to handle data in GPC scripts.
Function | Description | Zen | Plus |
Runs a combo | ✔️ | ✔️ | |
Checks if a combo is running | ✔️ | ✔️ | |
Stops a running combo | ✔️ | ✔️ | |
Restarts a running combo | ✔️ | ✔️ |
Function | Description | Zen | Plus |
Returns the elapsed time between main iterations in milliseconds | ✔️ | ✔️ | |
Returns the active slot number | ✔️ | ✔️ | |
Loads a specified slot | ✔️ | ✔️ | |
Returns the identifier of the controller button | ✔️ | ✔️ | |
Sets the vm timeout for the next iteration | ✔️ | ✔️ | |
Sets the stick output at a given angle and radius with a high resolution value | ✔️ | ❌ | |
Sets the LED on the ZEN to the supplied RGB color | ✔️ | ❌ | |
Sets the LED on the ZEN to the supplied HSB color | ✔️ | ❌ | |
The clamp() function clamps a value between an upper and lower bound. clamp() enables selecting a middle value within a range of values between a defined minimum and maximum. It takes three parameters: a minimum value, a preferred value, and a maximum allowed value. | ✔️ | ❌ |
Function | Description | Zen | Plus |
Draws a pixel on the OLED display | ✔️ | ❌ | |
Draws a line on the OLED display | ✔️ | ❌ | |
Draws a rectangle on the OLED display | ✔️ | ❌ | |
Draws a circle on the OLED display | ✔️ | ❌ | |
Puts a character into the string buffer for puts_oled | ✔️ | ❌ | |
Draws the characters supplied using putc_oled on the OLED display | ✔️ | ❌ | |
Sets the entire OLED display to a single color | ✔️ | ❌ | |
Draws a string on the OLED display | ✔️ | ❌ |
Last modified 1yr ago