Commits

Trammell Hudson committed 3d0591b

Added thin fonts for 0-19

Comments (0)

Files changed (1)

alphaclock_18_Rev1_0/alphaclock_18_Rev1_0.pde

 	0x0400, // `
 
 	// Spinners rotate through the middle
+#define SPINNER_0 ('`' + 1)
 	1 << 0xB,
 	1 << 0xC,
 	1 << 0x5,
 	1 << 0xA,
 
 	// Chaser goes around the outside of the box
+#define CHASER_0 (SPINNER_0 + 8)
 	1 << 0x0,
 	1 << 0x1,
 	1 << 0x6,
 	1 << 0x2,
 	1 << 0x8,
 	1 << 0x9,
+
+	// "Thin" fonts
+#define THIN_0 (CHASER_0 + 8)
+/*
+ * .- -    0 1
+ * |\|/|  9ABC6
+ *  - -    4 5
+ * |/|\|  8FED7
+ *  - -.   2 3
+ * thin font by "odometer": http://forums.adafruit.com/viewtopic.php?f=41&t=25675#p132457
+*/
+
+#define B(x) ((uint16_t) 1 << (x))
+ 
+	B(1) | B(6) | B(7) | B(3) | B(0xE) | B(0xB), // thin 0
+	B(6) | B(7), // thin 1
+	B(1) | B(6) | B(0x5) | B(0xE) | B(3), // thin 2
+	B(1) | B(6) | B(5) | B(7) | B(3), // thin 3
+	B(0xB) | B(5) | B(6) | B(7), // thin 4
+	B(1) | B(0xB) | B(5) | B(7) | B(3), // thin 5
+	B(1) | B(0xB) | B(5) | B(7) | B(3) | B(0xE), // thin 6
+	B(1) | B(6) | B(7), // thin 7
+	B(1) | B(0xB) | B(6) | B(5) | B(0xE) | B(7) | B(3), // thin 8
+	B(1) | B(0xB) | B(6) | B(5) | B(7) | B(3), // thin 9
+
+	B(9) | B(8) | B(1) | B(6) | B(7) | B(3) | B(0xE) | B(0xB), // thin 10
+	B(9) | B(8) | B(6) | B(7), // thin 11
+	B(9) | B(8) | B(1) | B(6) | B(0x5) | B(0xE) | B(3), // thin 12
+	B(9) | B(8) | B(1) | B(6) | B(5) | B(7) | B(3), // thin 13
+	B(9) | B(8) | B(0xB) | B(5) | B(6) | B(7), // thin 14
+	B(9) | B(8) | B(1) | B(0xB) | B(5) | B(7) | B(3), // thin 15
+	B(9) | B(8) | B(1) | B(0xB) | B(5) | B(7) | B(3) | B(0xE), // thin 16
+	B(9) | B(8) | B(1) | B(6) | B(7), // thin 17
+	B(9) | B(8) | B(1) | B(0xB) | B(6) | B(5) | B(0xE) | B(7) | B(3), // thin 18
+	B(9) | B(8) | B(1) | B(0xB) | B(6) | B(5) | B(7) | B(3), // thin 19
+
+#undef B
 };
 
 
       //display[0] = (SecNow % 8) + 1 + 8  + '`'; // chaser
       display_char(0, HrNowTens + '0');
       display_char(1, HrNowOnes + '0');
-#if 1
+#if 0
       display_char(2, MinNowTens + '0');
       display_char(3, MinNowOnes + '0');
 #else
-	display_char(2, (SecNow / 10) + '0');
-	display_char(3, (SecNow % 10) + '0');
+	display_char(2, (SecNow / 20) + THIN_0);
+	display_char(3, (SecNow % 20) + THIN_0);
 #endif
       display_char(4, ' '); // leave blank for spinner