Skip to content

loreii/jLedStripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

 	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

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

Releases

No releases published

Packages

No packages published

Languages