summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@ka-ata-killa.ourano.james.local>2021-03-19 09:36:36 +0000
committerroot <root@ka-ata-killa.ourano.james.local>2021-03-19 09:36:36 +0000
commitc6dc3064e7ebf1f13826487105f748745434da4d (patch)
treee630579771bf5e3203038ed2000cd03dbc7b3838
parent513cb94e3a1bcbbcc0fe292ec7547a9118168060 (diff)
downloadclock-c6dc3064e7ebf1f13826487105f748745434da4d.tar.gz
clock-c6dc3064e7ebf1f13826487105f748745434da4d.tar.bz2
clock-c6dc3064e7ebf1f13826487105f748745434da4d.zip
change font
-rw-r--r--app/display.c2
-rw-r--r--app/max7219.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/app/display.c b/app/display.c
index ad24962..5c745b7 100644
--- a/app/display.c
+++ b/app/display.c
@@ -27,7 +27,7 @@ void display_report_svin (int valid, int active)
}
-static const char *day_name[] = {"su", "mo", "tu", "we", "th", "fr", "sa"};
+static const char *day_name[] = {"su", "mm", "tu", "ww", "th", "fr", "sa"};
void display_dispatch (void)
diff --git a/app/max7219.c b/app/max7219.c
index 76af7b0..208eac9 100644
--- a/app/max7219.c
+++ b/app/max7219.c
@@ -148,6 +148,19 @@ max7219_refresh (void)
#define SF 0x02
#define SG 0x01
+/*
+ * AAAA
+ * F B
+ * F B
+ * F B
+ * GGGG
+ * E C
+ * E C
+ * E C
+ * DDDD DP
+ *
+ */
+
uint8_t max7219_char_to_bits (unsigned v)
{
switch (v) {
@@ -238,6 +251,10 @@ uint8_t max7219_char_to_bits (unsigned v)
case 'n':
return SG | SE | SC;
+ case 'M':
+ return SG | SC;
+
+
case 'o':
return SG | SE | SC | SD;
@@ -257,6 +274,9 @@ uint8_t max7219_char_to_bits (unsigned v)
case 'w':
return SE | SC | SD;
+ case 'W':
+ return SD | SC;
+
case 'y':
return SF | SB | SG | SC | SD;