This is c++ language source library for Flick3D boards.
Based on: https://github.com/PiSupply/Flick/tree/master/firmware/libcpp
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 |
$ 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
- 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