RpiGpio class
GPIO interface used for accessing GPIO on the Raspberry Pi.
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 getteroverride - 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.
inherited
-
dispose(
) → Future -
Call dispose before exiting your application to cleanup native resources.
Returns a future that completes when cleanup has finished.
override
-
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.override -
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.override -
pwm(
int physicalPin) → GpioPwm -
Return a GPIO pin configured for software based PWM,
where
physicalPin
is the physical pin number not the GPIO number.override -
testCmd(
dynamic data) → void - For testing purposes only
-
throwPinAlreadyAllocated(
int physicalPin) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited