at24cm0x 1.0
at24cm0x driver library
Loading...
Searching...
No Matches
tty.h
Go to the documentation of this file.
1
18
19#ifndef TTY_H_
20#define TTY_H_
21
22 #ifndef TTY_WIDTH
33 #define TTY_WIDTH (SSD130X_COLUMN_SIZE/FONT_WIDTH)
34 #endif
35
36 #ifndef TTY_HEIGHT
46 #define TTY_HEIGHT (SSD130X_ROW_SIZE/SSD130X_PAGE_SIZE)
47 #endif
48
49 #ifndef TTY_AUTOSCROLL
59 #define TTY_AUTOSCROLL
60 #endif
61
62 #ifndef TTY_ENABLE_PRINTF
72 #define TTY_ENABLE_PRINTF
73 #endif
74
75 #ifndef TTY_DYNAMIC_TEXT
85 // #define TTY_DYNAMIC_TEXT
86
87 #ifdef _DOXYGEN_
88 #define TTY_DYNAMIC_TEXT
89 #endif
90 #endif
91
92 #include <stdio.h>
93 #include <limits.h>
94
95 #include "../ssd130x.h"
96 #include "../../font/font.h"
97
105 #define TTY_HOME() (tty_cursor(0, 0))
106
107 void tty_init(void);
108 void tty_cursor(unsigned char column, unsigned char line);
109 void tty_clear_line(unsigned char line);
110
111 char tty_putchar(char character);
112 void tty_string(const char *string);
113
114 #ifdef TTY_ENABLE_PRINTF
115 int tty_printf(char data, FILE *stream);
116 #endif
117
118#endif /* TTY_H_ */
Header file for font handling and character bitmap retrieval.
Header file for SSD130X display control via hardware or software TWI/I2C.
void tty_init(void)
Initializes the TTY text output interface.
Definition tty.c:44
int tty_printf(char data, FILE *stream)
Writes a single character to the TTY interface (used as a printf output function).
Definition tty.c:232
void tty_clear_line(unsigned char line)
Clears a specific text line on the TTY interface.
Definition tty.c:108
char tty_putchar(char character)
Writes a single character to the TTY text interface on the SSD130X display.
Definition tty.c:149
void tty_string(const char *string)
Writes a null-terminated string to the TTY text interface.
Definition tty.c:211
void tty_cursor(unsigned char column, unsigned char line)
Sets the cursor position in the TTY text interface.
Definition tty.c:126