Skip to content

agural/Photuris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photuris

Photuris E19 Flashlight Code. See the Photuris E19 website for more details, or Photuris E19 Product to buy!

Folder Overview

  • 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 main photuris.ino code.

Linux Installation (Ubuntu/Debian)

Installation

  1. Run the following commands:
$ git clone https://github.com/agural/Photuris.git
$ cd Photuris
$ ./run.sh
  1. Modify the Makefile to match your programmer and port.
  2. If you want to use additional libraries, add them to arduino/libraries and add the library name to variable LIB in Makefile.
  3. If you need to reflash the fuses, run $ sudo make fuse or $ ./run fuse.

Install firmware using a programmer

  1. cd to the Photuris directory.
  2. Modify src/photuris.cpp to whatever you want the flashlight to do.
  3. Connect the flashlight to your computer:
    1. Connect the USBasp to your computer.
    2. Connect the USBasp to the ISP-μUSB adapter to the flashlight.
    3. Connect the reset wire to the flashlight.
  4. Run:
$ make all
$ sudo make upload
$ make clean
  1. Shortcut: $ ./run upload

Install bootloader using a programmer

  1. cd to the bootload/firmware directory.
  2. Modify the Makefile to match your programmer and port.
  3. Run:
$ make all
$ sudo make flash
$ make clean
  1. Shortcut: $ ./run bootflash

Download using bootloader

  1. First make sure the bootloader is installed (see above).
  2. cd to the Photuris directory.
  3. Modify src/photuris.cpp to whatever you want the flashlight to do.
  4. Connect the flashlight to your computer through a μUSB cable. Make sure the ID pin is floating (NOT tied to ground).
  5. Run:
$ make all
$ sudo ./bootload/commandline/bootloadHID -r photuris.hex
$ make clean
  1. Shortcut: $ ./run bootload

License

Copywrite 2013 Albert Gural. Licensed under the MIT license.

Important Resources

About

Photuris E19 Flashlight Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published