goodwatch/firmware/lcdtext.h

37 lines
859 B
C
Raw Normal View History

/*! \file lcdtext.h
\brief LCD text library.
*/
2017-09-24 20:38:14 +00:00
//! Draw a hex digit to the LCD.
2017-09-24 20:38:14 +00:00
void lcd_digit(int pos, int digit);
//! Draw a character to the LCD.
void lcd_char(int pos, char c);
//! Clear a digit of the LCD.
void lcd_cleardigit(int pos);
//! Draw a number to the LCD.
2017-09-24 20:38:14 +00:00
void lcd_number(long num);
//! Draw a string to the LCD.
void lcd_string(const char *str);
//! Draw a hex number to the LCD.
2017-09-24 20:38:14 +00:00
void lcd_hex(long num);
//Symbols
//! Turn the colon on or off.
2017-09-24 20:38:14 +00:00
void setcolon(int on);
//! Turn the period of a digit on or off.
void setperiod(int digit, int on);
//! Set the AM symbol.
2017-09-24 20:38:14 +00:00
void setam(int on);
//! Set the PM symbol.
2017-09-24 20:38:14 +00:00
void setpm(int on);
//! Set the multiplication symbol.
2017-09-24 20:38:14 +00:00
void setmult(int on);
//! Set the minus symbol.
2017-09-24 20:38:14 +00:00
void setminus(int on);
//! Set the plus symbol.
2017-09-24 20:38:14 +00:00
void setplus(int on);
//! Set the division symbol.
2017-09-24 20:38:14 +00:00
void setdivide(int on);