Hardware Reference
In-Depth Information
Solution
Wire up an Adafruit NeoPixel LED 8-by-8 matrix as shown in Figure 3-8 .
Figure 3-8. Wiring an Adafruit NeoPixel LED matrix to P8_30
Example 3-6 shows how to install LEDscape and run the LEDs.
Example 3-6. Installing and running LEDscape and OpenPixelControl (neoPixel.sh)
#!/bin/sh
# Here's what you do to install the neoPixel driver
# Disable the HDMI to gain access to the PRU pins
sed -i
'/cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN$/ \
s/^#//' /boot/uEnv.txt
reboot
# Clone and build the code
cd
git clone -b opc-server https://github.com/jadonk/LEDscape.git
cd LEDscape
make
cd
git clone https://github.com/jadonk/openpixelcontrol.git
# Load and configure the kernel module, pins and LEDscape daemon
config-pin overlay BB-OPC-EX
modprobe uio_pruss
./LEDscape/run-ledscape &
# Run an example Python script
./openpixelcontrol/python_clients/example.py
Search WWH ::




Custom Search