Gpio class abstract

Base GPIO interface supported by all GPIO implementations.

Implementers

Constructors

Gpio()

Properties

hashCode int
The hash code for this object.
no setterinherited
pollingFrequency Duration
Set the polling frequency for any GpioInput.values streams. The default polling frequency is every 10 milliseconds. Pass null to turn off polling.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allocatePin(int physicalPin) → void
Check that the pin can be used for GPIO and that is has not already been allocated. This should be called by subclasses not clients.
dispose() Future
Call dispose before exiting your application to cleanup native resources. Returns a future that completes when cleanup has finished.
input(int physicalPin, [Pull pull = Pull.off]) GpioInput
Return a GPIO pin configured for input, where physicalPin is the physical pin number not the GPIO number.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
output(int physicalPin) GpioOutput
Return a GPIO pin configured for output, where physicalPin is the physical pin number not the GPIO number.
pwm(int physicalPin) GpioPwm
Return a GPIO pin configured for software based PWM, where physicalPin is the physical pin number not the GPIO number.
throwPinAlreadyAllocated(int physicalPin) → void
toString() String
A string representation of this object.
inherited

Operators

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