Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

RockpiN10/dev/libmraa

< RockpiN10‎ | dev
Revision as of 04:04, 12 October 2020 by Zzl (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK Pi N10 >  Development >  Install Libmraa 

Libmraa on ROCK Pi N10

This guide describes how to use libmraa on ROCK Pi N10.

Install essential packages

Package libmraa is in the Radxa APT bionic-stable and buster-stable repositories.

Execute the following commands to add Radxa APT

rock@rockpin10:~$ export DISTRO=bionic-testing      # for Bionic

or

rock@rockpin10:~$ export DISTRO= buster-testing      # for Buster
rock@rockpin10:~$ echo "deb http://apt.radxa.com/$DISTRO/ ${DISTRO%-*} main" | sudo tee -a /etc/apt/sources.list.d/apt-radxa-com.list

Get the pub key

rock@rockpin10:~$  wget -O -  apt.radxa.com/buster-testing/public.key | sudo apt-key add -

Install essential packages:

rock@rockpin10:~$ sudo apt-get update
rock@rockpin10:~$ sudo apt-get install -y rockchip-overlay rockpin10-dtbo libmraa # libmraa version: >=0.4
rock@rockpin10:~$ sudo apt-get install -y linux-4.4-rockpin10-latest # ROCK Pi N10 kernel version: >= 4.4.167-14

Install compiler:

rock@rockpin10:~$ sudo apt install -y build-essential

Enable interface

See ROCK Pi N10 GPIO pintout. ROCK Pi N10 has a 40-pin colorful expansion header. Each pin is distinguished by color. mraa define is shown below:

Hardware V11