Multiplexers

Available methods

Configuration

  • setSwitchInterval(5) - Sets the time we allow the multiplexer to switch (in microseconds). The default value is 1 microsecond.
  • reserve(capacity) - Pre-allocate capacity for a known number of objects. Call this before adding objects to avoid heap allocations during runtime.

Core

  • process(count) - Polls all objects registered to the multiplexer (used in the loop method). When count is 0 (default), all objects are processed. When count is greater than 0, objects are processed in round-robin order for time-sliced, real-time-safe control processing. Use this to bound the worst-case execution time per loop iteration.
Previous
Advanced rotary encoder