BoardClient class Components
gRPC client for the Board component.
- Inheritance
- Implemented types
Constructors
- BoardClient(String name, ClientChannelBase channel)
Properties
- channel ↔ ClientChannelBase
-
getter/setter pairoverride
- client → BoardServiceClient
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
- 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.
override
-
analogReaderValue(
String analogReaderName, {Map< String, dynamic> ? extra}) → Future<AnalogValue> -
Read the current value of an analog reader of a board.
override
-
digitalInterruptValue(
String digitalInterruptName, {Map< String, dynamic> ? extra}) → Future<int> -
Return the current value of the interrupt which is based on the type of Interrupt.
override
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
override
-
gpio(
String pin, {Map< String, dynamic> ? extra}) → Future<bool> -
Get the high/low state of the given pin of a board.
override
-
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.
override
-
pwmFrequency(
String pin, {Map< String, dynamic> ? extra}) → Future<int> -
Get the PWM frequency of the given pin of a board.
override
-
setGpioState(
String pin, bool high, {Map< String, dynamic> ? extra}) → Future<void> -
Set the high/low state of the given pin of a board.
override
-
setPowerMode(
PowerMode powerMode, int seconds, int nanos, {Map< String, dynamic> ? extra}) → Future<void> -
Set the board to the indicated power mode.
override
-
setPwm(
String pin, double dutyCyclePct, {Map< String, dynamic> ? extra}) → Future<void> -
Set the duty cycle of the given pin of a board.
override
-
setPwmFrequency(
String pin, int frequencyHz, {Map< String, dynamic> ? extra}) → Future<void> -
Set the PWM frequency in hertz of the given pin of a board.
override
-
streamTicks(
List< String> interrupts, {Map<String, dynamic> ? extra}) → Stream<Tick> -
Stream digital interrupts ticks.
override
-
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited