19 lines
434 B
C
19 lines
434 B
C
#ifndef I2C_LCD_H
|
|
#define I2C_LCD_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/** Call once at startup to power up the I²C bus and init the LCD controller. */
|
|
void lcdInit(void);
|
|
|
|
/** Print a NUL-terminated string at the current cursor position. */
|
|
void lcdPrint(const char *str);
|
|
|
|
/** Send a single character. */
|
|
void lcdPutChar(char c);
|
|
|
|
/** Move the cursor to (row, col), 0-based. */
|
|
void lcdSetCursor(uint8_t row, uint8_t col);
|
|
|
|
#endif // I2C_LCD_H
|