Commits

Trammell Hudson committed 1cb7149 Draft

Slow down display and use slightly larger small font

Comments (0)

Files changed (2)

 }
 
 
-#define MAX_ROWS 8
-#define MAX_COLS 12
+#define MAX_ROWS 10
+#define MAX_COLS 15
 
 static char text[MAX_ROWS][MAX_COLS] = {
 	{ "" },
 static void
 draw_text(void)
 {
-	uint8_t y = 256-32;
+	const uint8_t height = 24;
+
+	uint8_t y = 256-height;
 	for (uint8_t row = 0 ; row < MAX_ROWS ; row++)
 	{
 		uint8_t x = 0;
 		for (uint8_t col = 0 ; col < MAX_COLS ; col++)
 		{
-			x += draw_char_med(x, y, text[row][col]);
+			x += draw_char_small(x, y, text[row][col]) + 3;
 		}
 
-		y -= 32;
+		y -= height;
 	}
 }
 
 pixel_delay(void)
 {
 #ifdef CONFIG_SLOW_SCOPE
-	_delay_us(1);
+	_delay_us(5);
 #endif
 }
 
 )
 {
 	if (scale == 0)
-		return d / 2;
+		return (d * 2) / 3;
 	if (scale == 1)
 		return d;
 	if (scale == 2)
 		oy = ny;
 	}
 
-	return 20;
+	return scaling(20, scale);
 #endif
 }