analogReaderValue abstract method

Future<AnalogValue> analogReaderValue(
  1. String analogReaderName, {
  2. Map<String, dynamic>? extra,
})

Read the current value of an analog reader of a board.

// Get the current value of an analog reader named "my_example_analog"
var analogVal = await myBoard.analogReaderValue('my_example_analog');

For more information, see Board component.

Implementation

Future<AnalogValue> analogReaderValue(String analogReaderName, {Map<String, dynamic>? extra});