1 package kaka.cakelight;
3 import com.pi4j.io.spi.SpiChannel;
4 import com.pi4j.io.spi.SpiDevice;
5 import com.pi4j.io.spi.SpiFactory;
7 import java.io.IOException;
9 public class LedController {
10 public static void main(String args[]) {
11 new LedController(null);
14 public LedController(Configuration config) {
16 SpiDevice spi = SpiFactory.getInstance(SpiChannel.CS0);
18 (byte)0xff, (byte)0x0, (byte)0x0,
19 (byte)0x00, (byte)0xff, (byte)0x0,
20 (byte)0x0, (byte)0x00, (byte)0xff
22 } catch (IOException e) {
27 public void onFrame(LedFrame ledFrame) {