addCallbacks method

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

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

@override
Future<void> addCallbacks(List<String> interrupts, Queue<Tick> tickQueue, {Map<String, dynamic>? extra}) async {
  // addCallbacks not implemented on client side since it is a helper for StreamTicks.
  throw UnimplementedError();
}