summaryrefslogtreecommitdiffstats
path: root/app/max7219.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/max7219.c')
-rw-r--r--app/max7219.c20
1 files changed, 20 insertions, 0 deletions
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;