From 695bc5a25a5802321d5bcadf1f4c9e0922a2776c Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 23 Jun 2012 21:57:18 -0300 Subject: [PATCH] fw/: reduce image width from 100 to 80 square pixels To achieve square 100 pixels (1:6.25 image aspect ratio), very vigorous movement is needed. 80 pixels (still 1:5) are easier. Initial estimates suggested a usable range of 1:4-1:5, so this is still good. Note that we may want to change the aspect ratio of the pixels themselves in the future (for smoother letters), so the pixel count may go up again. 80 pixels correspond to 11 characters in a 7x5 font with 2 pixels separation between characters. We may want to go up to 82 pixels to allow a 12th character - or use a proportional font. --- fw/antorcha.c | 2 +- fw/image.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fw/antorcha.c b/fw/antorcha.c index 5b7d802..320ff5d 100644 --- a/fw/antorcha.c +++ b/fw/antorcha.c @@ -28,7 +28,7 @@ static struct sweep sweep = { .wait_ticks = 60000, /* 60 ms */ .pixel_ticks = 1000, /* 1 ms */ .left = 0, - .right = 79, + .right = MAX_LINES-1, .forward = 1, }; diff --git a/fw/image.h b/fw/image.h index dd4c4a4..5936186 100644 --- a/fw/image.h +++ b/fw/image.h @@ -18,7 +18,7 @@ #include -#define MAX_LINES 100 +#define MAX_LINES 80 struct line {