This utility is intended to be used as java driver for Dream Cheeky LED Message Board.
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
LedStripe led = LedStripe.getInstance();
byte[][] matrix = {
{ 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1 },
{ 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1 }, };
led.write(matrix);
####Keep writing some text
while (true) {
led.setBrightness(0);
led.scrollTextLeft( "ABCDEFGHILMNOPQRSUVZ", 300);
led.scrollTextRight( "ABCDEFGHILMNOPQRSUVZ".toLowerCase(), 300);
}
###References