Releases: Dreamscapes/ledctl
Releases · Dreamscapes/ledctl
0.2.2
0.2.1
Fixes
- Handle errors for
turnOff
inblinkWorker
- Fix potential undefined callback error in custom serialiser wrapper
- Only reconfigure git username & email when running on Travis during gh-pages publishing
New features
- Improve error messages a bit
- Implement
.setBrightness()
- Override
.valueOf()
to return current brightness [feedback needed] - Override
.toString()
on instance objects to be more helpful
0.2.0
Breaking changes
- Custom serialiser must be synchronous - were it async, the order of blink events would be undeterministic, which is bad for something that relies on a very specific sequence of events. Consider:
var led = new LEDController('green')
led.morse('sos') // Blink SOS in morse, but the morse parser is async!
process.nextTick(function () {
// Has the morse parser already handled the request? Will the queue of events
// generated by it be cleared or not? No one knows!
led.reset().blink()
})
There might be a way to make serialisers async again but it would require a significant refactoring to accomodate for such behaviour. For the time being, I am not interested in investing further time and resources into such endeavour.
0.1.3
Fixes
- Fixed some minor issues with the optional callback behaviour
New features
- If your system only has one LED, you no longer need to provide its ID to the constructor
- JSDoc template updated!
0.1.2
Fixed minor issues with the morse code serialiser:
- Word break should not be followed by letter break
- Do not add letter break in morse on end of string
0.1.0
Initial public release. Have fun!