mraa 4.0.2 copy "mraa: ^4.0.2" to clipboard
mraa: ^4.0.2 copied to clipboard

A Dart FFI wrapper implementation of the Intel linux MRAA device library

example/mraa_example.dart

/*
 * Package : mraa
 * Author : S. Hamblett <steve.hamblett@linux.com>
 * Date   : 03/10/2019
 * Copyright :  S.Hamblett
 */

import 'package:mraa/mraa.dart';

int main() {
  final mraa = Mraa();

  // Set any options such as no JSON loading here
  // mraa.noJsonLoading = true;

  // Initialise the package, you MUST do this after setting any
  // options if you don't the API calls will throw no such method error.
  mraa.initialise();

  // Call the MRAA API functions
  final mraaVersion = mraa.common.version();
  print('Version is : $mraaVersion');

  return 0;
}
8
likes
160
pub points
24%
popularity

Publisher

verified publisherdarticulate.com

A Dart FFI wrapper implementation of the Intel linux MRAA device library

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

www.darticulate.com

License

MIT (license)

Dependencies

ffi, path

More

Packages that depend on mraa