mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-01 11:15:55 +02:00
695bc5a25a
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.
33 lines
635 B
C
33 lines
635 B
C
/*
|
|
* fw/image.h - Image data (upload and conversion)
|
|
*
|
|
* Written 2012 by Werner Almesberger
|
|
* Copyright 2012 Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
|
|
#ifndef IMAGE_H
|
|
#define IMAGE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
|
|
#define MAX_LINES 80
|
|
|
|
|
|
struct line {
|
|
uint8_t d; /* port D0-D7 */
|
|
uint8_t cb; /* port C0-C5, B6-B7 */
|
|
};
|
|
|
|
|
|
extern const struct line *image;
|
|
|
|
#endif /* !IMAGE_H */
|