aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorSelene ToyKeeper2024-03-12 13:17:47 -0600
committerSelene ToyKeeper2024-03-12 13:17:47 -0600
commit8dbc5c8b694a5a60b5f2bbc4228037eff119ba68 (patch)
tree4e2404dcbc74c175bc9c60a68bb18708f15cb521 /ui
parentadded wurkkos-ts25-boost (early version made from spec, no clue if it works) (diff)
parentenabled eeprom read/write stabilization by default on recent MCUs, (diff)
downloadanduril-8dbc5c8b694a5a60b5f2bbc4228037eff119ba68.tar.gz
anduril-8dbc5c8b694a5a60b5f2bbc4228037eff119ba68.tar.bz2
anduril-8dbc5c8b694a5a60b5f2bbc4228037eff119ba68.zip
Merge branch 'trunk' into wurkkos-ts25-boost
* trunk: enabled eeprom read/write stabilization by default on recent MCUs, to prevent corrupt data thefreeman-avr32dd20-devkit: enable boost bypass at boot, so AA/NiMH can boot avr32dd20-devkit: use unimplemented "CH" pin as a boost bypass control added "emisar-2ch-fet-joined" build, for D4S w/ lighted switch documented FW3X swapped pins better documented Wurkkos TS25/TS11/FC13 distinctions build.sh: don't require DFPs, newer avr-libc doesn't need them use BLIP_LEVEL instead of 0 for "blip"s clarified which-hex-file.md a bit; make sure the model number matches fw3x: reduced pulsing on low modes
Diffstat (limited to 'ui')
-rw-r--r--ui/anduril/misc.c4
-rw-r--r--ui/anduril/misc.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ui/anduril/misc.c b/ui/anduril/misc.c
index 3715f34..9144b28 100644
--- a/ui/anduril/misc.c
+++ b/ui/anduril/misc.c
@@ -25,7 +25,7 @@ void blink_confirm(uint8_t num) {
void blink_once() {
uint8_t brightness = actual_level;
uint8_t bump = brightness + BLINK_BRIGHTNESS;
- if (bump > MAX_LEVEL) bump = 0;
+ if (bump > MAX_LEVEL) bump = BLIP_LEVEL;
set_level(bump);
delay_4ms(BLINK_ONCE_TIME/4);
@@ -35,7 +35,7 @@ void blink_once() {
// Just go dark for a moment to indicate to user that something happened
void blip() {
uint8_t temp = actual_level;
- set_level(0);
+ set_level(BLIP_LEVEL);
delay_4ms(3);
set_level(temp);
}
diff --git a/ui/anduril/misc.h b/ui/anduril/misc.h
index 0f2992a..b259a6e 100644
--- a/ui/anduril/misc.h
+++ b/ui/anduril/misc.h
@@ -4,6 +4,10 @@
#pragma once
+#ifndef BLIP_LEVEL
+#define BLIP_LEVEL 0
+#endif
+
//void blink_confirm(uint8_t num); // no longer used
void blink_once();
void blip();
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.