diff options
| author | Selene ToyKeeper | 2020-08-31 14:32:28 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-08-31 14:32:28 -0600 |
| commit | 9b9a0f8068c194d847190fc140c918370b90a91c (patch) | |
| tree | f3401d5927de5795e7de52cfee1fd9c4dca08a57 /spaghetti-monster | |
| parent | removed unnecessary blink_once calls, made blink_once a bit less bright (diff) | |
| download | anduril-9b9a0f8068c194d847190fc140c918370b90a91c.tar.gz anduril-9b9a0f8068c194d847190fc140c918370b90a91c.tar.bz2 anduril-9b9a0f8068c194d847190fc140c918370b90a91c.zip | |
removed blink_confirm() because it's not used any more
(only commented out though, for now)
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/misc.c | 12 | ||||
| -rw-r--r-- | spaghetti-monster/anduril/misc.h | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/spaghetti-monster/anduril/misc.c b/spaghetti-monster/anduril/misc.c index f6a0439..63b8f48 100644 --- a/spaghetti-monster/anduril/misc.c +++ b/spaghetti-monster/anduril/misc.c @@ -22,6 +22,7 @@ #include "misc.h" +/* no longer used void blink_confirm(uint8_t num) { uint8_t brightness = actual_level; uint8_t bump = actual_level + (MAX_LEVEL/6); @@ -33,9 +34,18 @@ void blink_confirm(uint8_t num) { if (num > 1) { delay_4ms(100/4); } } } +*/ +// make a short, visible pulse +// (either brighter or darker, depending on current brightness) void blink_once() { - blink_confirm(1); + uint8_t brightness = actual_level; + uint8_t bump = brightness + (MAX_LEVEL/6); + if (bump > MAX_LEVEL) bump = 0; + + set_level(bump); + delay_4ms(10/4); + set_level(brightness); } // Just go dark for a moment to indicate to user that something happened diff --git a/spaghetti-monster/anduril/misc.h b/spaghetti-monster/anduril/misc.h index 548cc23..5febbc7 100644 --- a/spaghetti-monster/anduril/misc.h +++ b/spaghetti-monster/anduril/misc.h @@ -20,7 +20,7 @@ #ifndef MISC_H #define MISC_H -void blink_confirm(uint8_t num); +//void blink_confirm(uint8_t num); // no longer used void blink_once(); void blip(); |
