+ public static void main(String args[]) {
+ new LedController(null);
+ }
+
+ public LedController(Configuration config) {
+ try {
+ SpiDevice spi = SpiFactory.getInstance(SpiChannel.CS0);
+ spi.write(
+ (byte)0xff, (byte)0x0, (byte)0x0,
+ (byte)0x00, (byte)0xff, (byte)0x0,
+ (byte)0x0, (byte)0x00, (byte)0xff
+ );
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+