Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Arduino IDE 1.0.3, added medium, and shake to enter Dazzle mode. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
86 changes: 43 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
HexBright Demo Code
=======================
hexbright_factory
-----------------
This is the software that ships with the Hexbright Flex. Button presses cycle
through off, low, medium, and high modes. Hold down the button while off for
blinky mode.
hexbright4
---------------------
Fancier than the factory program, but designed for everyday usability. Button
presses cycle through off, low and high modes. Hold the light horizontally,
hold the button down, and rotate about the long axis clockwise to increase
brightness, and counter-clockwise to decrease brightness- the brightness sticks
when you let go of the button. While holding the button down, give the light a
firm tap to change to blinky mode, and another to change to dazzle mode.
hexbright_demo_morse
--------------------
Flashes out a message in morse code every time you press the button. Nothing
else. The message and speed are easy to change- you can see and change both
in the first lines of code.
hexbright_demo_taps
-------------------
Hold the button down, and with your other hand firmly tap on the light. Tap
some more times, and let go of the button. The exact sequence of taps will
be recorded and then played back as flashes until you press the button again
to turn off.
hexbright_demo_momentary
------------------------
Light turns on only while the button is being held down. That's it.
hexbright_demo_dazzle
---------------------
Light runs in dazzle mode only as long as the button is being held down.
hexbright_demo_fades
--------------------
Hold the button down, and light fades up and down. Let go, and it holds the
current brightness. Another press to turn off.
HexBright Demo Code
=======================

hexbright_factory
-----------------
This is the software that ships with the Hexbright Flex. Button presses cycle
through off, low, medium, and high modes. Hold down the button while off for
blinky mode.

hexbright4.1
---------------------
Fancier than the factory program, but designed for everyday usability. Button
presses cycle through off, low, medium and high modes. Hold the light horizontally,
hold the button down, and rotate about the long axis clockwise to increase
brightness, and counter-clockwise to decrease brightness- the brightness sticks
when you let go of the button. While holding the button down, give the light a
firm tap to change to blinky mode, and another to change to dazzle mode, or shake it!

hexbright_demo_morse
--------------------
Flashes out a message in morse code every time you press the button. Nothing
else. The message and speed are easy to change- you can see and change both
in the first lines of code.

hexbright_demo_taps
-------------------
Hold the button down, and with your other hand firmly tap on the light. Tap
some more times, and let go of the button. The exact sequence of taps will
be recorded and then played back as flashes until you press the button again
to turn off.

hexbright_demo_momentary
------------------------
Light turns on only while the button is being held down. That's it.

hexbright_demo_dazzle
---------------------
Light runs in dazzle mode only as long as the button is being held down.

hexbright_demo_fades
--------------------
Hold the button down, and light fades up and down. Let go, and it holds the
current brightness. Another press to turn off.
44 changes: 22 additions & 22 deletions hardware/hexbright/boards.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
##############################################################
hexbright.name=Hexbright
hexbright.upload.protocol=arduino
hexbright.upload.maximum_size=14336
hexbright.upload.speed=19200
hexbright.bootloader.low_fuses=0xe2
hexbright.bootloader.high_fuses=0xdd
hexbright.bootloader.extended_fuses=0x00
hexbright.bootloader.path=atmega
hexbright.bootloader.file=ATmegaBOOT_168_hexbright.hex
hexbright.bootloader.unlock_bits=0x3F
hexbright.bootloader.lock_bits=0x0F
hexbright.build.mcu=atmega168
hexbright.build.f_cpu=8000000L
hexbright.build.core=arduino:arduino
hexbright.build.variant=arduino:standard
##############################################################

hexbright.name=Hexbright

hexbright.upload.protocol=arduino
hexbright.upload.maximum_size=14336
hexbright.upload.speed=19200

hexbright.bootloader.low_fuses=0xe2
hexbright.bootloader.high_fuses=0xdd
hexbright.bootloader.extended_fuses=0x00
hexbright.bootloader.path=atmega
hexbright.bootloader.file=ATmegaBOOT_168_hexbright.hex
hexbright.bootloader.unlock_bits=0x3F
hexbright.bootloader.lock_bits=0x0F

hexbright.build.mcu=atmega168
hexbright.build.f_cpu=8000000L
hexbright.build.core=arduino:arduino
hexbright.build.variant=arduino:standard


Loading