Board class abstract Components

Board represents a physical general purpose compute board that contains various components such as analog readers, and digital interrupts.

For more information, see Board component.

Inheritance
Implementers

Constructors

Board()

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCallbacks(List<String> interrupts, Queue<Tick> tickQueue, {Map<String, dynamic>? extra}) → Future<void>
Add a listener for the digital interrupts.
analogReaderValue(String analogReaderName, {Map<String, dynamic>? extra}) → Future<AnalogValue>
Read the current value of an analog reader of a board.
digitalInterruptValue(String digitalInterruptName, {Map<String, dynamic>? extra}) → Future<int>
Return the current value of the interrupt which is based on the type of Interrupt.
doCommand(Map<String, dynamic> command) → Future<Map<String, dynamic>>
Send/Receive arbitrary commands to the Resource
inherited
getGeometries({Map<String, dynamic>? extra}) → Future<List<Geometry>>
Get all geometries associated with the Board
getStatus() → Future<Map<String, dynamic>>
Get the status of the Resource
inherited
gpio(String pin, {Map<String, dynamic>? extra}) → Future<bool>
Get the high/low state of the given pin of a board.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pwm(String pin, {Map<String, dynamic>? extra}) → Future<double>
Get the duty cycle of the given pin of a board.
pwmFrequency(String pin, {Map<String, dynamic>? extra}) → Future<int>
Get the PWM frequency of the given pin of a board.
setGpioState(String pin, bool high, {Map<String, dynamic>? extra}) → Future<void>
Set the high/low state of the given pin of a board.
setPowerMode(PowerMode powerMode, int seconds, int nanos, {Map<String, dynamic>? extra}) → Future<void>
Set the board to the indicated power mode.
setPwm(String pin, double dutyCyclePct, {Map<String, dynamic>? extra}) → Future<void>
Set the duty cycle of the given pin of a board.
setPwmFrequency(String pin, int frequencyHz, {Map<String, dynamic>? extra}) → Future<void>
Set the PWM frequency in hertz of the given pin of a board.
streamTicks(List<String> interrupts, {Map<String, dynamic>? extra}) → Stream<Tick>
Stream digital interrupts ticks.
toString() → String
A string representation of this object.
inherited
writeAnalog(String pin, int value, {Map<String, dynamic>? extra}) → Future<void>
Write analog value to pin.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromRobot(RobotClient robot, String name) → Board
Get the Board named name from the provided robot.
getResourceName(String name) → ResourceName
Get the ResourceName for this Board with the given name

Constants

subtype → const Subtype