NeoPixel library for edison via mraa gpio. Tested only in ubilinux, yocto and WS2812.
- swig
- mraa
Follow this article: https://learn.sparkfun.com/tutorials/installing-libmraa-on-ubilinux-for-edison
If you face Unknown CMake command "target_include_directories".
, modify mraa source code -> https://github.com/Drunkar/mraa/commit/8c1891013a6665ac35d33ff00e13f1e3db3d53f5 .
apt-get -y update
apt-get install -y cmake python-dev swig
cd /home/edison/
git clone https://github.com/Drunkar/mraa.git
mkdir mraa/build && cd $_
cmake .. -DBUILDSWIGNODE=OFF
make
make install
echo "/usr/local/lib/i386-linux-gnu/" >> /etc/ld.so.conf
ldconfig
git clone https://github.com/Drunkar/NeoPixel-edison-mraa
cd NeoPixel-edison-mraa/src/
make
cd ../examples/
# wiring
if using arduino expansion board, connect ws2812 to A1 pin
# python test
python strandtest.py
# c test
make
./whitetest