项目作者: loreii

项目描述 :
Dream Cheeky LED Message Board Java Driver
高级语言: Java
项目地址: git://github.com/loreii/jLedStripe.git
创建时间: 2017-02-20T15:17:41Z
项目社区:https://github.com/loreii/jLedStripe

开源协议:Apache License 2.0

下载


" class="reference-link">jLedStripe travis Coverage Status logo

This utility is intended to be used as java driver for Dream Cheeky LED Message Board.

image

Right now the application is able to conect to the HID device with libusb java library usb4java:

Name Value
Vendor ID 0x1D34
Product ID 0x0013
Manufacturer String Dream Link
Product String USB LED Message Board v1.0
Version 0x01
Serial Number 1

and decode a 1:1 byte array matrix rapresentign the single led to the legacy protocol of the board.
The future imporvements will provide a library to be used in any java aplication for interact in a simply way to the led matrix in a java style approach like:

Sample direct matrix draw

  1. LedStripe led = LedStripe.getInstance();
  2. byte[][] matrix = {
  3. { 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1 },
  4. { 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
  5. { 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
  6. { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
  7. { 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
  8. { 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
  9. { 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1 }, };
  10. led.write(matrix);

Keep writing some text

  1. while (true) {
  2. led.setBrightness(0);
  3. led.scrollTextLeft( "ABCDEFGHILMNOPQRSUVZ", 300);
  4. led.scrollTextRight( "ABCDEFGHILMNOPQRSUVZ".toLowerCase(), 300);
  5. }

References

  1. javax-usb quickstart page
  2. similar project written in C
  3. missile luncher usb4java example
  4. Dream Cheeky LED Message Board