| java.lang.Object | |
| ↳ | thingm.blink1.Blink1 |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Close blink(1) device
| |||||||||||
Do a transaction with the Blink1.
| |||||||||||
(re)Enumerate the bus and return a count of blink(1) device found.
| |||||||||||
Fade blink(1) to RGB color over fadeMillis milliseconds.
| |||||||||||
Fade blink(1) to RGB color over fadeMillis milliseconds.
| |||||||||||
Return the list of blink(1) device paths found by enumerate.
| |||||||||||
Return the list of blink(1) device serials found by enumerate.
| |||||||||||
one attempt at a degamma curve.
| |||||||||||
Simple command-line demonstration
| |||||||||||
Open blink(1) device.
| |||||||||||
Open blink(1) device by blink(1) numerical id (0-getCount()).
| |||||||||||
Open blink(1) device by USB path, may be different for each insertion.
| |||||||||||
Open blink(1) device by blink(1) serial number.
| |||||||||||
Utility: A simple delay
| |||||||||||
Set blink(1) RGB color immediately
| |||||||||||
Set blink(1) RGB color immediately
| |||||||||||
Write a blink(1) light pattern entry
| |||||||||||
Write a blink(1) light pattern entry
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructor. Searches for plugged in blink(1) devices and populates internal caches.
Close blink(1) device
Do a transaction with the Blink1. length of both byte arrays determines amount of data sent or received
| cmd | The blink1 command code |
|---|---|
| buf_send | Is byte array of command to send, may be null |
| buf_recv | Is byte array of any receive data, may be null |
(re)Enumerate the bus and return a count of blink(1) device found.
Fade blink(1) to RGB color over fadeMillis milliseconds.
| fadeMillis | Milliseconds to take to get to color |
|---|---|
| r | Red component 0-255 |
| g | Green component 0-255 |
| b | Blue component 0-255 |
Fade blink(1) to RGB color over fadeMillis milliseconds.
| fadeMillis | Milliseconds to take to get to color |
|---|---|
| c | Color to set |
Return the list of blink(1) device paths found by enumerate.
Return the list of blink(1) device serials found by enumerate.
one attempt at a degamma curve. //FIXME: this is now in blink1-lib
| n |
|---|
Simple command-line demonstration
| args |
|---|
Open blink(1) device. Stores open device id statically in native lib. Only one device can be open at once.
Open blink(1) device by blink(1) numerical id (0-getCount()). Id list is ordered by serial number.
| id |
|---|
Open blink(1) device by USB path, may be different for each insertion.
| devicepath |
|---|
Open blink(1) device by blink(1) serial number.
| serialnumber |
|---|
Utility: A simple delay
| millis |
|---|
| play | True to play, false to stop |
|---|---|
| pos | Starting position to play from, 0 = start |
| on | True = turn on serverdown mode, false = turn it off |
|---|---|
| millis | Milliseconds until light pattern plays if not updated |
Set blink(1) RGB color immediately
| r | Red component 0-255 |
|---|---|
| g | Green component 0-255 |
| b | Blue component 0-255 |
Set blink(1) RGB color immediately
| c | Color to set |
|---|
Write a blink(1) light pattern entry
| fadeMillis | Milliseconds to take to get to color |
|---|---|
| c | Color to set |
| pos | Entry position 0-patt_max |
Write a blink(1) light pattern entry
| fadeMillis | Milliseconds to take to get to color |
|---|---|
| r | Red component 0-255 |
| g | Green component 0-255 |
| b | Blue component 0-255 |
| pos | Entry position 0-patt_max |