2021-04-03 19:39:24 +00:00
|
|
|
#ifndef __LCD_H__
|
|
|
|
#define __LCD_H__
|
2021-04-05 19:18:30 +00:00
|
|
|
/*
|
|
|
|
* lcd.h
|
|
|
|
*
|
|
|
|
* Created: Mar 2021
|
|
|
|
* Author: Arjan te Marvelde
|
|
|
|
*
|
|
|
|
* See lcd.c for more information
|
|
|
|
*/
|
2021-04-03 19:39:24 +00:00
|
|
|
|
|
|
|
#include "pico/stdlib.h"
|
|
|
|
#include "hardware/i2c.h"
|
|
|
|
|
|
|
|
#define LCD_CLEAR 0
|
|
|
|
#define LCD_HOME 1
|
|
|
|
#define LCD_BLINK 2
|
|
|
|
#define LCD_GOTO 3
|
2021-04-07 20:13:13 +00:00
|
|
|
#define LCD_CURSOR 4
|
2021-04-03 19:39:24 +00:00
|
|
|
|
|
|
|
void lcd_init(void);
|
|
|
|
void lcd_ctrl(uint8_t cmd, uint8_t x, uint8_t y);
|
2021-04-08 20:32:27 +00:00
|
|
|
void lcd_put(uint8_t c);
|
|
|
|
void lcd_write(uint8_t *s);
|
2021-04-07 20:13:13 +00:00
|
|
|
void lcd_test(void);
|
2021-04-03 19:39:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|