Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 740 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 740 Bytes
title permalink redirect_from
Examples on how to use UART using mraa library
/documentation/consumer/guides/mraa/uart/
/documentation/ConsumerEdition/guides/mraa/uart/

Examples on how to use UART using mraa library

Following examples are provided to use UART using MRAA library.

  1. mraa_uart.c
  2. mraa_uart.cpp
  3. mraa_uart.py

Usage:

Prerequisite: Debian running on 96Boards CE with libmraa installed

  • Copy the examples to 96Boards CE
  • Build the C/C++ examples:
$ gcc mraa_uart.c -o uart_c
$ g++ mraa_uart.cpp -o uart_c++
  • Execute the examples:
$ sudo ./uart_c
$ sudo ./uart_c++
$ sudo python mraa_uart.py

Expected Behaviour:

Sends "Hello Mraa" string to /dev/tty96B0 uart port.