/blink1-java

blink(1) Java / Processing library

Primary LanguageProcessingOtherNOASSERTION

Java Library for blink(1)

Build

./mvnw clean install

This builds a fat jar in: blink1-library/target/blink1-library-jar-with-dependencies.jar

Examples

Examples that use the library can be found in the blink1-examples module

you can run an example from the command line (after building) with:

./run-example.sh Example<n>

(where <n> is: 0, 1, 2 or 3)

ex:

./run-example.sh Example0
Looking for blink(1) devices...
blink(1)s found:
i:0  serial:37ec9b94

There's also a basic program to turn off the blink1 or set it to a specific RGB value:

./run-example.sh OnOffColor
Turning off blink1.
./run-example.sh OnOffColor 255 0 0
Setting R(255)G(0)B(0) on blink1
./run-example.sh OnOffColor 255 bad 255
One or more of the rgb params is not a number between 0 and 255: r(255), g(bad), b(255)

Toy / Test Applications written in Processing Java

These "toy" or "test" applications for just playing around with your blink(1):

  • BlinkATweet -- Watch real-time Twitter stream for keywords, flash blink(1) when found.
    Download: (Mac OSX) / (Windows)

  • Blink1ColorOrgan -- Sound-reactive program, music-to-color, instant disco! Download: (Mac OSX) / (Windows)

  • Blink1ColorPicker -- Play with blink(1) select colors. Download: (Mac OSX), (Windows)

  • Blink1Test0 -- a very simple random-color app. Download: (Mac OSX) / (Windows)