Skip to content

Releases: Dreamscapes/ledctl

0.2.2

20 Feb 09:14
v0.2.2
Compare
Choose a tag to compare

Fixes

  • Fixed an issue where a callback with error would be called in current event loop

Other changes

  • Improved documentation
  • Updated dependencies to latest versions
  • Various internal code clean-ups and improvements
  • Node.js 0.12 support

0.2.1

30 Dec 18:21
Compare
Choose a tag to compare

Fixes

  • Handle errors for turnOff in blinkWorker
  • 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

07 Dec 19:48
ac6d491
Compare
Choose a tag to compare

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

07 Dec 02:15
f824c9e
Compare
Choose a tag to compare

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

06 Dec 13:45
afbdf2c
Compare
Choose a tag to compare

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

05 Dec 22:48
Compare
Choose a tag to compare

Initial public release. Have fun!