Files
lcd1602atest/include/lcd.h
DESKTOP-PUHFO60\dsx2016 8ad00d8718 Fix LCD1602 blank display: HD44780 timing, pinmap switch, contrast hint.
Match LiquidCrystal_I2C init delays; add Map button for alternate PCF8574 wiring; warn about blue contrast pot.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 14:30:21 +08:00

25 lines
492 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <stddef.h>
#include <stdint.h>
void lcd_init();
bool lcd_ok();
uint8_t lcd_addr();
/** 0=标准 YwRobot(P0=RS..),1=部分国产板(EN/RS 换脚) */
uint8_t lcd_pinmap();
void lcd_set_pinmap(uint8_t map);
void lcd_reinit();
void lcd_set_backlight(bool on);
bool lcd_backlight();
void lcd_clear();
void lcd_set_line(uint8_t row, const char *text);
void lcd_get_line(uint8_t row, char *out, size_t out_len);
void lcd_demo(uint8_t index);
uint8_t lcd_demo_count();