oled
1.0
OLED Graphics Control Library
Loading...
Searching...
No Matches
font.h
Go to the documentation of this file.
1
18
19
#ifndef FONT_H_
20
#define FONT_H_
21
22
#ifndef FONT_WIDTH
30
#define FONT_WIDTH 5
31
#endif
32
33
#ifndef FONT_HEIGHT
41
#define FONT_HEIGHT 7
42
#endif
43
44
#ifndef FONT_ASCII_START_CHAR
52
#define FONT_ASCII_START_CHAR ' '
53
#endif
54
55
#ifndef FONT_ASCII_END_CHAR
63
#define FONT_ASCII_END_CHAR '~'
64
#endif
65
66
#ifndef FONT_IGNORE_LOWER_CASE
76
// #define FONT_IGNORE_LOWER_CASE
77
78
#ifdef _DOXYGEN_
// Used for documentation, can be ignored
79
#define FONT_IGNORE_LOWER_CASE
80
#endif
81
#endif
82
83
// Saves the fonts in eeprom
84
// All ASCII characters need 470 Bytes of EEPROM
85
// ASCII characters (without lower case) need 340 Bytes of EEPROM
86
#ifndef FONT_STORE_IN_EEPROM
99
// #define FONT_STORE_IN_EEPROM
100
101
#ifdef _DOXYGEN_
// Used for documentation, can be ignored
102
#define FONT_STORE_IN_EEPROM
103
#endif
104
#endif
105
106
#include <ctype.h>
107
#include <avr/io.h>
108
109
#ifdef FONT_STORE_IN_EEPROM
110
#include <avr/eeprom.h>
111
#else
112
#include <avr/pgmspace.h>
113
#endif
114
115
unsigned
char
*
font_getchararray
(
const
char
character);
116
117
#endif
/* FONT_H_ */
font_getchararray
unsigned char * font_getchararray(const char character)
Retrieves the bitmap array for a given ASCII character from the font table.
Definition
font.c:236
lib
oled
font
font.h
Generated by
1.14.0