The HexBright (or HexBright Flex) is an open-source, programmable LED flashlight from a 2011 Kickstarter project. It's designed with an onboard ATmega328P microcontroller that's fully Arduino-compatible, meaning you don't need to "connect" a separate Arduino board to it—the flashlight is an Arduino. You program it directly via USB using the Arduino IDE, just like any Arduino Uno. It features a high-output CREE LED (up to 500 lumens), a built-in accelerometer for tilt-based controls, a button for input, thermal sensing to prevent overheating, and USB charging.
Download Arduino IDE: Get the latest version from arduino.cc. Version 1.0.1+ is required for compatibility, but newer ones work fine.
Download the HexBright Master Repo
git clone <https://github.com/dhiltonp/hexbright.git>
hardware directory to the root of the Arduino home directory.libraries directory to the root of the Arduino directory.