Photuris E19 Flashlight Code. See the Photuris E19 website for more details, or Photuris E19 Product to buy!
arduino
: Contains arduino libraries.bootload
: Contains files for the bootloader and for uploading firmware via bootload.docs
: Contains documentation and history.lib
: Contains libraries and headers for the Photuris flashlight.src
: Contains mainphoturis.ino
code.
- Run the following commands:
$ git clone https://github.com/agural/Photuris.git $ cd Photuris $ ./run.sh
- Modify the
Makefile
to match your programmer and port. - If you want to use additional libraries, add them to
arduino/libraries
and add the library name to variableLIB
inMakefile
. - If you need to reflash the fuses, run
$ sudo make fuse
or$ ./run fuse
.
cd
to thePhoturis
directory.- Modify
src/photuris.cpp
to whatever you want the flashlight to do. - Connect the flashlight to your computer:
- Connect the USBasp to your computer.
- Connect the USBasp to the ISP-μUSB adapter to the flashlight.
- Connect the reset wire to the flashlight.
- Run:
$ make all $ sudo make upload $ make clean
- Shortcut:
$ ./run upload
cd
to thebootload/firmware
directory.- Modify the
Makefile
to match your programmer and port. - Run:
$ make all $ sudo make flash $ make clean
- Shortcut:
$ ./run bootflash
- First make sure the bootloader is installed (see above).
cd
to thePhoturis
directory.- Modify
src/photuris.cpp
to whatever you want the flashlight to do. - Connect the flashlight to your computer through a μUSB cable. Make sure the ID pin is floating (NOT tied to ground).
- Run:
$ make all $ sudo ./bootload/commandline/bootloadHID -r photuris.hex $ make clean
- Shortcut:
$ ./run bootload
Copywrite 2013 Albert Gural. Licensed under the MIT license.