llvm-mos-sdk
|
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | DISPLAY_WIDTH 80 |
#define | DISPLAY_HEIGHT 50 |
Functions | |
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. More... | |
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. More... | |
void | rpc8e_display_clear (void) |
Clear the display. More... | |
uint8_t | rpc8e_display_wherex (void) |
Return the cursor's current X position. More... | |
uint8_t | rpc8e_display_wherey (void) |
Return the cursor's current Y position. More... | |
void | rpc8e_display_revers (bool value) |
Enable or disable "reverse video" mode. More... | |
void | rpc8e_display_gotox (uint8_t x) |
Move the cursor to a specific X position. More... | |
void | rpc8e_display_gotoy (uint8_t y) |
Move the cursor to a specific Y position. More... | |
void | rpc8e_display_gotoxy (uint8_t x, uint8_t y) |
Move the cursor to a specific X/Y position. More... | |
void | rpc8e_display_put (uint8_t x, uint8_t y, uint8_t value) |
Put a character on the display. More... | |
bool | rpc8e_display_key_pressed (void) |
Return true if a key has been pressed and is awaiting in the queue. More... | |
int | rpc8e_display_key_read (void) |
Return a key from the queue. More... | |
Functionality related to the display.
#define DISPLAY_HEIGHT 50 |
#define DISPLAY_WIDTH 80 |
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.
x | Destination X position. |
y | Destination Y position. |
width | Width. |
height | Height. |
fiilchar | The character to fill the area with. |
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.
sx | Source X position. |
sy | Source Y position. |
dx | Destination X position. |
dy | Destination Y position. |
width | Width. |
height | Height. |
void rpc8e_display_clear | ( | void | ) |
Clear the display.
void rpc8e_display_gotox | ( | uint8_t | x | ) |
Move the cursor to a specific X position.
x | X position. |
void rpc8e_display_gotoxy | ( | uint8_t | x, |
uint8_t | y | ||
) |
Move the cursor to a specific X/Y position.
x | X position. |
y | Y position. |
void rpc8e_display_gotoy | ( | uint8_t | y | ) |
Move the cursor to a specific Y position.
y | Y position. |
bool rpc8e_display_key_pressed | ( | void | ) |
Return true if a key has been pressed and is awaiting in the queue.
int rpc8e_display_key_read | ( | void | ) |
Return a key from the queue.
void rpc8e_display_put | ( | uint8_t | x, |
uint8_t | y, | ||
uint8_t | value | ||
) |
Put a character on the display.
x | X position. |
y | Y position. |
value | The character to put. |
void rpc8e_display_revers | ( | bool | value | ) |
Enable or disable "reverse video" mode.
uint8_t rpc8e_display_wherex | ( | void | ) |
Return the cursor's current X position.
uint8_t rpc8e_display_wherey | ( | void | ) |
Return the cursor's current Y position.