Mraa class

The main MRAA interface.

MRAA allows Dart to interface with the I/O on Galileo, Edison & other platforms, with a structured and sane API where port names/numbering matches the board that you are on. Use of MRAA does not tie you to specific hardware with board detection done at runtime you can create portable code that will work across the supported platforms.

The intent is to make it easier for developers and sensor manufacturers to map their sensors & actuators on top of supported hardware and to allow control of low level communication protocol using Dart.

Constructors

Mraa()
Default uses the platform library
Mraa.fromLib(String libPath)
Specify the library and path

Properties

aio MraaAio
The AIO API
getter/setter pair
common MraaCommon
The common API
getter/setter pair
gpio MraaGpio
The GPIO API
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
i2c MraaI2c
The I2C API
getter/setter pair
led MraaLed
The LED API
getter/setter pair
noJsonLoading bool
Do not use JSON platform loading, some versions of MRAA do not support this, must be set for MRAA API <2.0.0 usage. Set this before initialising.
getter/setter pair
pwm MraaPwm
The PWM API
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spi MraaSpi
The SPI API
getter/setter pair
uart MraaUart
The UART API
getter/setter pair
useGrovePi bool
getter/setter pair

Methods

initialise() → void
Initialise the package, note this does NOT do an MRAA initialise if you need this call it separately. You MUST call this before usage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

generalError int
getter/setter pair

Constants

aioReadDoubleError → const double
AIO read double error
aioReadError → const int
AIO read error
grovePiPinOffset → const int
Grove PI pin offset value