29 lines
690 B
C
29 lines
690 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define HAL_DISPLAY_COLS 20
|
|
#define HAL_DISPLAY_ROWS 4
|
|
|
|
/* Colour panel geometry (S3). 2004 ignores pixel APIs. */
|
|
#define HAL_DISPLAY_PX_W 480
|
|
#define HAL_DISPLAY_PX_H 272
|
|
#define HAL_DISPLAY_CELL_W 24
|
|
#define HAL_DISPLAY_CELL_H 32
|
|
#define HAL_DISPLAY_SOFTKEY_H 48
|
|
|
|
void hal_display_init(void);
|
|
void hal_display_clear(void);
|
|
void hal_display_text(int col, int row, const char *s); /* clip to 20 cols */
|
|
void hal_display_glyph_thermo(int col, int row);
|
|
void hal_display_flush(void);
|
|
|
|
/* Softkey chrome; no-op on 2004. slot in [0, slots). */
|
|
void hal_display_softkey(int slot, int slots, const char *label);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|