Giter VIP home page Giter VIP logo

fliclib-linux-dist's Introduction

Flic SDK for Linux Beta

Feedback

Any issues should be reported here on github.

Whats included

  • daemon - This is the central daemon that manages all buttons. Run it with ./daemon -l -f flic.sqlite3
  • fliclib-cpp/flic - This is a command line tool for managing the daemon.
  • fliclib-cpp/flic.hph - These are the header files for the C++ client library
  • fliclib-cpp/libflic.a - This is the C++ client library
  • fliclib-cpp/ffi/java/flic.jar - Java bindings for the Flic client library
  • fliclib-cpp/ffi/java/libflicjava.so - Flic JNI library. The sample code expects this to be copied to /usr/lib/libflicjava.so
  • fliclib-cpp/ffi/python/flic/dist/flic-0.1-py2.7.egg - Python2.7 bindings for the Flic client library. Install with sudo easy_install flic-0.1-py2.7.egg
  • fliclib-cpp/ffi/samples/java/Main.java - Sample Java code. Run with java -cp "../../java/flic.jar:." Main
  • fliclib-cpp/ffi/samples/java/Makefile - Makefile for the Java sample
  • fliclib-cpp/ffi/samples/python/main.py - Sample Python2.7 code. Run with python2 main.py

Supported platforms

Binaries and libraries has been compiled for x86_64, i386 and armv6l. All code has been compiled and tested on Ubuntu 15.10 for desktop and Raspbian Jessy. This means it should be compatible with desktop systems and both raspberrypi 1 & 2. I have tried to make the binaries as portable as possible.

Bluetooth controllers

We haven't tested compability with all common Bluetooth controllers. The following devices has been tested and confirmed:

  • Plugable USB Bluetooth 4.0 Low Energy Micro Adapter
  • Broadcom BCM20702 Bluetooth 4.0

Requirements

Bluez

Flic requires the latest bluez HEAD to work well

Building

git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git

cd bluez

./bootstrap

./configure --enable-experimental --enable-library

make

sudo make install

Running

The easiest way to get started is to run bluetoothd directly from the src folder. Be sure to disable any other bluetoothd service.

cd src
sudo ./bluetoothd -nEd

Example

In one terminal run ./bluetoothd -nEd

In another terminal run ./daemon -l -f flic.sqlite3

In a third terminal run ./flic

In the third terminal enter the command startScan. Now press your Flic button and wait for it to appear. When it does, enter the command stopScan. Hold your Flic button for 8 seconds to make it public, and make sure that it glows read. Then enter the command connect <MAC> where MAC is the address that appeared during scan. The button should now connect and you will see click events appear.

fliclib-linux-dist's People

Contributors

fabianbergmark avatar johanstenberg92 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.