Skip to content

Commit

Permalink
moved definition of BLINK_ONCE_TIME to the same file as BLINK_BRIGHTNESS
Browse files Browse the repository at this point in the history
  • Loading branch information
ToyKeeper committed May 30, 2023
1 parent d2f1f19 commit e3798bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spaghetti-monster/anduril/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ void blink_confirm(uint8_t num) {

// make a short, visible pulse
// (either brighter or darker, depending on current brightness)
#ifndef BLINK_ONCE_TIME
#define BLINK_ONCE_TIME 10
#endif
#ifndef BLINK_BRIGHTNESS
#define BLINK_BRIGHTNESS (MAX_LEVEL/6)
#endif
void blink_once() {
uint8_t brightness = actual_level;
uint8_t bump = brightness + BLINK_BRIGHTNESS;
Expand Down
5 changes: 5 additions & 0 deletions spaghetti-monster/fsm-misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
void auto_clock_speed();
#endif

// shortest time (in ms) the light should blink for to indicate a zero
#ifndef BLINK_ONCE_TIME
#define BLINK_ONCE_TIME 10
#endif

#if defined(USE_BLINK_NUM) || defined(USE_BLINK_DIGIT)
#ifndef BLINK_BRIGHTNESS
#define BLINK_BRIGHTNESS (MAX_LEVEL/6)
Expand Down

0 comments on commit e3798bb

Please sign in to comment.