Send/Receive arbitrary commands to the resource.
The command to execute.
Return the current value of the interrupt which is based on the type of interrupt.
The name of the digital interrupt.
Optional
extra: StructTypeOptional
extra: StructTypeGet the duty cycle of the given pin of a board.
The pin.
Optional
extra: StructTypeThe duty cycle, which is a value from 0 to 1.
Get the PWM frequency of the given pin of a board.
The pin.
Optional
extra: StructTypeRead the current value of an analog reader of a board.
The name of the analog reader.
Optional
extra: StructTypeSet the high/low state of the given pin of a board.
The pin.
When true, set the given pin to high. When false, set the given pin to low.
Optional
extra: StructTypeSet the duty cycle of the given pin of a board.
The pin.
A value from 0 to 1.
Optional
extra: StructTypeSet the PWM frequency of the given pin of a board.
The pin.
The PWM frequency, in hertz. 0 will use the board's default PWM frequency.
Optional
extra: StructTypeSet power mode of the board.
The name of the board.
The requested power mode.
The requested duration to stay in power mode.
Optional
extra: StructTypeStream digital interrupt ticks on the board.
Names of the interrupts to stream.
Array to put the ticks in.
Optional
extra: StructTypeWrite an analog value to a pin on the board.
The pin name.
An integer value to write.
Optional
extra: StructTypeGenerated using TypeDoc
Represents a physical general purpose compute board that contains various components such as analog readers, and digital interrupts.