Class: PicoInterface

picointerface~PicoInterface()

This is used for communicating with PICO8 games and setting information to the relevant GPIO pins.

Constructor

new PicoInterface()

Source:

Members

gameStarted :boolean

Has PICO-8 started?
Type:
  • boolean
Source:

pico8_gpio :Array:.<number:>

PICO-8's GPIO pins to connect with.
Type:
  • Array:.<number:>
Source:

Methods

interfaceWithPico()

Connect with a PICO-8 game.
Source:

picoUpdate(self)

Update PICO-8 interface every frame to interface with the GPIO pins. Called by module:gameloader~GameLoader#loadUpdate.
Parameters:
Name Type Description
self PicoInterface
Source:
To Do:
  • Is the parameter self even needed? What is this doing here? gameloader doesn't even set it.

(static) isPicoRunning() → {boolean}

Source:
Returns:
If PICO-8 is detected as running.
Type
boolean