Open
Conversation
…uding hexbright.h
… of integers over Serial.
Fix two small errors in comments/documentation
Add a Bike Light program extending Functional and taking from Tactical.
…ebel (github: yyyc514)
Similar to up_n_down, but adjustment of the light only happens when button is held, not when it is first turned on, so the saved brightness is used. Holding the button while on set the brightness and then it is used until reset again.
Added code to detect if the EEPROM has ever been initialized and initialize it if it has not.
Fix some spelling errors and other minor things in the README. Additional comments and spelling changes in the program.
New Set_and_Remember program that is a simple modification of up_n_down
Added a tail flash when entering and exiting locked mode so you know if you got it right.
Tail Flash
Re write the way that SOS is flashed. Changed the nightlight to turn off the tail cap LED when the main light is on. Switch nightlight to use the green tail cap LED instead of the red.
Changed the inter-word delay to be an exactly 7 beats and updated the comments to explain how the bitmap is used to create the dits and dahs. Also re-ordered all the constants at the top of the program. Removed unused setting of bit BLOCK_TURNING_OFF as it is never read by the program. Move the declaration of time to the start of the program and simple reset the time at each run through the loop. Replaced some of the DBG code so it will be compiled in when the appropriate define is set. Renamed tailflash to tailflashesLeft because it tells what the variable is really doing.
Added code that causes the light to flash the tail cap LED 2 times if the light is in locked mode and the button is pressed.
Various Changes in Locked Mode and SOS with Documentation Updates
port new lock mode and sos mode from set_and_remember
Moved the shutdown code to the mode maintenance so that shutdown will happen after the flashes finish. Needed to add a shutdown delay upon startup to keep the unit from shutting down right after waking up.
Simple documentation update.
Fixed problem on locking mode so that the unit will shutdown properly.
Found the MCU pinout on the hexbright website using the Wayback machine. Uploading here for posterity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I think it would be worthwhile to have the MCU pinout available in this repository, for anyone coming back for repair.