addCallbacks abstract method

Future<void> addCallbacks(
  1. List<String> interrupts,
  2. Queue<Tick> tickQueue, {
  3. Map<String, dynamic>? extra,
})

Add a listener for the digital interrupts.

// Add a listener for digital interrupts on pins 8 and 11
var interrupts = ['8', '11'];
final tickQueue = Queue<Tick>();
await myBoard.addCallbacks(interrupts, tickQueue);

For more information, see Board component.

Implementation

Future<void> addCallbacks(List<String> interrupts, Queue<Tick> tickQueue, {Map<String, dynamic>? extra});