Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.9 KB

README.md

File metadata and controls

73 lines (51 loc) · 1.9 KB

Flick3D

This is c++ language source library for Flick3D boards.

Based on: https://github.com/PiSupply/Flick/tree/master/firmware/libcpp


Table of Contents


1) Hardware

1.1) Hardware Requirements

1.2) Hardware Setup

Note: Make sure the Voltage Levels are at 3v3 and not 1v8 or 5v

96Boards Flick3D
I2C-1 SDA SDA
I2C-1 SCL SCL
RST GPIO-K
TS GPIO-L

2) Software

2.1) Setup MRAA

$ git clone https://github.com/Mani-Sadhasivam/mraa
$ cd mraa
$ git checkout 28b0550d9e016b02f472005bbdedc315f0cd23d9
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
$ make -j$(nproc)
$ sudo make install

Note: these steps may change in the near future

2.2) Build Example

  • C++ source files flick.h and flick.cpp defines API class that provides programming interface for Flick 3D gesture boards.
  • Include flick.h and flick.cpp to your c++ project.
  • Depends on mraa library.

Build example program on Linux:

g++ flick_example.cpp flick.cpp -o flick_example -lmraa

Run example:

sudo ./flick_example