You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* daemon - This is the central daemon that manages all buttons. Run it with ./daemon -l -f flic.sqlite3
5
-
* fliclib-cpp/flic - This is a command line tool for managing the daemon. Type help to see available commands
6
-
* fliclib-cpp/flic.hph - These are the header files for the C++ client library
7
-
* fliclib-cpp/libflic.a - This is the C++ client library
8
-
* fliclib-cpp/ffi/java/flic.jar - Java bindings for the Flic client library
9
-
* fliclib-cpp/ffi/java/libflicjava.so - Flic JNI library. The sample code expects this to be copied to /usr/lib/libflicjava.so
10
-
* 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
11
-
* fliclib-cpp/ffi/samples/java/Main.java - Sample Java code. Run with java -cp "../../java/flic.jar:." Main
12
-
* fliclib-cpp/ffi/samples/java/Makefile - Makefile for the Java sample
13
-
* fliclib-cpp/ffi/samples/python/main.py - Sample Python2.7 code. Run with python2 main.py
4
+
*`daemon` - This is the central daemon that manages all buttons. Run it with `./daemon -l -f flic.sqlite3`
5
+
*`fliclib-cpp/flic` - This is a command line tool for managing the daemon. Type `help` to see available commands
6
+
*`fliclib-cpp/flic.hph` - These are the header files for the C++ client library
7
+
*`fliclib-cpp/libflic.a` - This is the C++ client library
8
+
*`fliclib-cpp/ffi/java/flic.jar` - Java bindings for the Flic client library
9
+
*`fliclib-cpp/ffi/java/libflicjava.so` - Flic JNI library. The sample code expects this to be copied to `/usr/lib/libflicjava.so`
10
+
*`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`
11
+
*`fliclib-cpp/ffi/samples/java/Main.java` - Sample Java code. Run with `java -cp "../../java/flic.jar:." Main`
12
+
*`fliclib-cpp/ffi/samples/java/Makefile` - `Makefile` for the Java sample
13
+
*`fliclib-cpp/ffi/samples/python/main.py` - Sample Python2.7 code. Run with `python2 main.py`
14
14
15
15
## Supported platforms
16
-
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.
16
+
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.
17
17
## Bluetooth controllers
18
18
We haven't tested compability with common Bluetooth controllers. The following devices has been tested and confirmed:
19
19
* Plugable USB Bluetooth 4.0 Low Energy Micro Adapter
@@ -22,6 +22,7 @@ We haven't tested compability with common Bluetooth controllers. The following d
The easiest way to get started is to run bluetoothd directly from the src folder. Be sure to disable any other bluetoothd service.
39
41
42
+
```
40
43
cd src
41
44
sudo ./bluetoothd -nEd
45
+
```
42
46
43
47
## Example
44
-
In one terminal run ./bluetoothd -nEd
48
+
In one terminal run `./bluetoothd -nEd`
45
49
46
-
In another terminal run ./daemon -l -f flic.sqlite3
50
+
In another terminal run `./daemon -l -f flic.sqlite3`
47
51
48
-
In a third terminal run ./flic
52
+
In a third terminal run `./flic`
49
53
50
-
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.
54
+
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.
0 commit comments