llvm-mos-sdk
display.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Adrian "asie" Siekierka
3  *
4  * Licensed under the Apache License, Version 2.0 with LLVM Exceptions,
5  * See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
6  * information.
7  */
8 
9 #ifndef _RPC8E_DISPLAY_H_
10 #define _RPC8E_DISPLAY_H_
11 
12 #include <stdbool.h>
13 #include <stdint.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
23 #define DISPLAY_WIDTH 80
24 #define DISPLAY_HEIGHT 50
25 
37  uint8_t width, uint8_t height);
38 
49  uint8_t height, uint8_t fillchar);
50 
54 void rpc8e_display_clear(void);
55 
60 
65 
69 void rpc8e_display_revers(bool value);
70 
77 
84 
92 
101 
105 bool rpc8e_display_key_pressed(void);
106 
112 int rpc8e_display_key_read(void);
113 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif /* _RPC8E_DISPLAY_H_ */
rpc8e_display_key_read
int rpc8e_display_key_read(void)
Return a key from the queue.
rpc8e_display_key_pressed
bool rpc8e_display_key_pressed(void)
Return true if a key has been pressed and is awaiting in the queue.
rpc8e_display_gotox
void rpc8e_display_gotox(uint8_t x)
Move the cursor to a specific X position.
rpc8e_display_blit_shift
void rpc8e_display_blit_shift(uint8_t sx, uint8_t sy, uint8_t dx, uint8_t dy, uint8_t width, uint8_t height)
Copy an area of the display to another location.
rpc8e_display_wherex
uint8_t rpc8e_display_wherex(void)
Return the cursor's current X position.
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
rpc8e_display_wherey
uint8_t rpc8e_display_wherey(void)
Return the cursor's current Y position.
x
byte x
Definition: api.h:26
y
byte byte y
Definition: api.h:26
rpc8e_display_gotoy
void rpc8e_display_gotoy(uint8_t y)
Move the cursor to a specific Y position.
rpc8e_display_gotoxy
void rpc8e_display_gotoxy(uint8_t x, uint8_t y)
Move the cursor to a specific X/Y position.
rpc8e_display_put
void rpc8e_display_put(uint8_t x, uint8_t y, uint8_t value)
Put a character on the display.
rpc8e_display_blit_fill
void rpc8e_display_blit_fill(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t fillchar)
Fill an area of the display with a character.
rpc8e_display_revers
void rpc8e_display_revers(bool value)
Enable or disable "reverse video" mode.
rpc8e_display_clear
void rpc8e_display_clear(void)
Clear the display.