Files
H1502_iostate/lkm/global.h
Martijn Scheepers 92655751fd save
2017-09-28 08:07:29 +02:00

40 lines
629 B
C

#ifndef GLOBAL_H
#define GLOBAL_H
//display pixels
#define DISPLAY_WIDTH 128
#define DISPLAY_HEIGHT 32
//max chars on display
#define LINE_LENGTH 21
// two spaces after scrolling line
#define SCROLL_PADDING 2
//width off gpio status
#define GPIO_WIDTH 81
//60 seconds
#define DISPLAY_TIMEOUT 60000
//#define DISPLAY_TIMEOUT 10000
//pixel size of the font
#define FONT_WIDTH 6
#define FONT_HEIGHT 7
#define INPUT 'I'
#define OUTPUT 'O'
struct line_t{
unsigned long column;
unsigned long invert;
char *message;
unsigned int msg_length;
char *bitmap;
unsigned int bmp_length;
int bmp_idx;
};
#endif