Examples on how to use UART using mraa library
Following examples are provided to use UART using MRAA library.
- mraa_uart.c
- mraa_uart.cpp
- 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.