📄️ Simulation API
The SimulationAPI provides methods to interact with the simulation environment directly from your component's core simulation logic. Accessible within your SimulationComponentLogic class, it offers streamlined access to simulation features through dedicated utilities.
📄️ Simulation State
The Simulation State Manager in your component's core logic enables seamless synchronization and management of simulation state variables between your core logic (TypeScript) and the UI layer. These variables are initialized in your subclass of AbstractSimulationComponentLogic and accessed using:
📄️ Pin API
The Pin API provides methods for creating and interacting with pins on a component. Pins are connection points on a component that enable electrical interactions with other components in a circuit. Each pin defines how the component electrically interacts within the simulation environment.
📄️ I2C API
The I2C API allows you to define and implement I2C communication behavior for your components. Components can function as either masters, initiating communication, or slaves, responding to communication requests. The API provides a straightforward way to set up and interact over an I2C bus.
📄️ SPI API
This guide explains how to use the SPI (Serial Peripheral Interface) API to simulate data exchanges between components. Components can function as SPI Masters or SPI Slaves.
📄️ Timer API
The Timer API allows you to create and manage timers within your components. Timers are useful for scheduling actions or events at specified intervals or after certain delays in simulation time.
📄️ Connection API
The Connection API provides methods for creating, managing, and removing electrical connections between pins of a component within the simulation environment. Connections include wires, resistors, and LEDs, which enable you to simulate various electrical effects and behaviors by interconnecting pins internally within a single component.
📄️ Audio API
The Audio API enables simulation components to play audio directly on the user's computer within the simulation environment. Components can generate and play audio using two primary methods: frequency-based audio or sample-based audio.