p5.toio Documentation

website·Indexed 29 days ago

https://tetunori.github.io/p5.toio/

A library for interacting with toio™Core Cubes within the p5.js environment. It provides APIs for searching and connecting to cubes, controlling motors, lights, and sound, and managing various mat and ID classes such as P5tCube, CubeConnector, and TileMat.

Tokens
21.2K
Snippets
221
Records
274
Agent score
75%

What's inside p5.toio

  1. Overview of p5.toio library

    p5.toio is a library designed for the p5.js environment that allows developers to control toio™ Core Cubes. It simplifies the process of interacting with toio™ APIs within a creative coding context.
  2. Overview of CubeSensorChar class

    The CubeSensorChar class is used to interact with the sensor characteristics of a toio cube. It extends CubeChar and implements the CubeCharIF interface. It provides methods to read the cube's posture, shake level, magnet status, and flat status.
  3. Overview of p5.toio for toio™Core Cube control

    p5.toio is a library designed to allow developers to control the toio™Core Cube within p5.js simply and quickly. It provides a set of APIs and utilities to handle the underlying communication chores, allowing users to focus on creative programming.
  4. CubeBaseIF Interface Overview

    The CubeBaseIF interface defines the core properties and methods for controlling a toio cube. It is implemented by the CubeBase class. This interface provides access to various 'Char' objects that handle specific hardware functions (battery, buttons, lights, motors, etc.) and manages the connection state of the cube.
  5. Understand the CubeCharIF interface hierarchy

    The CubeCharIF interface serves as the base definition for cube characteristic interactions. It is implemented by several specialized classes including CubeBatteryChar, CubeButtonChar, CubeChar, CubeConfigChar, CubeIDChar, CubeLightChar, CubeMotorChar, CubeSensorChar, and CubeSoundChar.
  6. Identify toio stickers using the Sticker class

    The Sticker class (inheriting from StandardId) provides a mapping of sticker names to their corresponding numeric IDs. This is used to identify which sticker a toio cube is interacting with.