30 #define F_CPU 12000000UL
44 #define TTY_WIDTH (OLED_COLUMN_SIZE/FONT_WIDTH)
57 #define TTY_HEIGHT (OLED_ROW_SIZE/OLED_PAGE_SIZE)
60 #ifndef TTY_AUTOSCROLL
70 #define TTY_AUTOSCROLL
73 #ifndef TTY_ENABLE_PRINTF
83 #define TTY_ENABLE_PRINTF
86 #ifndef TTY_DYNAMIC_TEXT
99 #define TTY_DYNAMIC_TEXT
105 #include <util/delay.h>
117 #define TTY_HOME() (tty_cursor(0, 0))
120 void tty_cursor(
unsigned char column,
unsigned char line);
126 #ifdef TTY_ENABLE_PRINTF
Header file for font handling and character bitmap retrieval.
Header file for OLED 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:225
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 OLED display.
Definition tty.c:149
void tty_string(const char *string)
Writes a null-terminated string to the TTY text interface.
Definition tty.c:204
void tty_cursor(unsigned char column, unsigned char line)
Sets the cursor position in the TTY text interface.
Definition tty.c:126