|ReleasedLast Release||Dec 2014|
Maintained by Unclaimed.
|LOCLines of Code||414|
Tester app and driver of the Time-a-Light traffic light device, for iOS and OS X.
Use one of these two alternatives to use the library:
Assetsfolders to your target.
BSAudioLightControllerto your project.
BSAudioLightController.hinto your controller
BSAudioLightEnabledPrefKeywith your UI and store boolean value
YESto enable it or
audioLightItem: setActive:to activate or de-activate the signal lights or buzzer.
Note that the signal audio will only go through the headphone jack since this is the way the device is meant to be used.
Please take a look at the example tester and play around with to get a feel how to use the driver and how the device works.
Time-a-light takes in commands as square wave tones from the audio jack.
|Signal||Left Channel||Right Channel|
As of this writing only one light or the buzzer can be active at one time due to Time-a-light's hardware constraints. The driver gets around this limitation by cycling the tones when more than one light is supposed to be active, giving a blinking light effect. Testing shows that 5Hz is the fastest rate that the device can recognize tone changes.
This project is licensed under the BSD license. Please let me know ([email protected]) if you use it for something interesting.
Please note that I'm publishing this library as open source as a courtesy since I'm also using it myself in one of my apps. However I won't be able to provide much support for it in case of API changes, etc.