Functions

term.h File Reference

simple terminal emulation on LCD display More...

#include <avr/pgmspace.h>
#include <stdio.h>

Go to the source code of this file.

Functions

void term_init (void)
 initialize terminal
uint8_t term_setwindow (uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1)
 set a window for output operations on terminal
void term_print (char c)
 output a single character on LCD display
void term_strprint (const char *s)
 output a null-terminated string on LCD display
void term_strprint_P (PGM_P s)
 output a null-terminated string on LCD display stored in Flash
int term_put (char, FILE *)
 stdio interface

Detailed Description

simple terminal emulation on LCD display

Emulate a simple terminal on LCD display.


Function Documentation

void term_print ( char  c  ) 

output a single character on LCD display

Parameters:
c character to output
int term_put ( char  ,
FILE *   
)

stdio interface

pass a pointer to this function to fdevopen or fdev_setup_stream() or FDEV_SETUP_STREAM()

uint8_t term_setwindow ( uint8_t  x0,
uint8_t  y0,
uint8_t  x1,
uint8_t  y1 
)

set a window for output operations on terminal

Returns:
TRUE if parameters were usable
void term_strprint ( const char *  s  ) 

output a null-terminated string on LCD display

Parameters:
s string to output
void term_strprint_P ( PGM_P  s  ) 

output a null-terminated string on LCD display stored in Flash

Parameters:
s string to output (stored in Flash ROM)