| 85 | |
| 86 | test the java installation (output should include "1.8.0_65" and should not include "openjdk"): |
| 87 | {{{ |
| 88 | java -version |
| 89 | }}} |
| 90 | |
| 91 | Now we can install [http://pi4j.com/install.html pi4j], a Java interface for the pi GPIO: |
| 92 | {{{ |
| 93 | curl -s get.pi4j.com | sudo bash |
| 94 | }}} |
| 95 | |
| 96 | Then we can use the rpi_ws281x library for controlling the [https://www.adafruit.com/category/168 Adafruit NeoPixel lightring][[BR]] |
| 97 | But first, let's install some tools and dependencies: |
| 98 | {{{ |
| 99 | sudo apt-get install build-essential python-dev git scons swig |
| 100 | }}} |
| 101 | |
| 102 | Now we can install the rpi_ws281x library: |
| 103 | {{{ |
| 104 | git clone https://github.com/jgarff/rpi_ws281x.git |
| 105 | cd rpi_ws281x |
| 106 | scons |
| 107 | }}} |
| 108 | |
| 109 | Let's also install the python library: |
| 110 | {{{ |
| 111 | cd python |
| 112 | sudo python setup.py install |
| 113 | }}} |