I borrowed a few lines of code from the hexbright dazzle demo to create a new bedazzled version of my custom firmware. The dazzle mode is activated by holding down the push button for more than 500 ms at power on.
Also of interest:
The Hexbright is an Arduino-compatible open source flashlight that was the subject of a very successful kickstarter campaign in 2011.
Today I spent a short time working on some custom firmware for it.
My firmware adds two new features:
- Button presses cycle between modes (low, med, high brightness) as usual, but if you wait longer than CYCLE_DELAY (default 5 seconds) between presses, the next press turns the hexbright off.
- If the hexbright is left on for longer than AUTO_OFF_MINUTES (defaults to an hour), the hexbright turns off. Handy for when you prop the light somewhere and forget about it.
You can download my custom Hexbright Arduino sketch here. If you’re new to the Hexbright, read these well-written instructions first. You’ll need to install the required USB driver and Arduino board configuration file.
Amazon link: HexBright FLEX, 500 Lumen Programmable LED Flashlight