liblvgl/include/liblvgl/llemu.h file

Legacy LCD Emulator

This file defines a high-level API for emulating the three-button, UART-based VEX LCD, containing a set of functions that facilitate the use of a software- emulated version of the classic VEX LCD module.

Visit https://pros.cs.purdue.edu/v5/tutorials/topical/adi.html to learn more.

This file should not be modified by users, since it gets replaced whenever a kernel upgrade occurs.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Namespaces

namespace pros
LLEMU Conditional Include
namespace pros::c

Functions

bool lcd_is_initialized(void)
Checks whether the emulated three-button LCD has already been initialized.
bool lcd_initialize(void)
Creates an emulation of the three-button, UART-based VEX LCD on the display.
bool lcd_shutdown(void)
Turns off the Legacy LCD Emulator.
bool lcd_print(int16_t line, const char* fmt, ...)
Displays a formatted string on the emulated three-button LCD screen.
bool lcd_set_text(int16_t line, const char* text)
Displays a string on the emulated three-button LCD screen.
bool lcd_clear(void)
Clears the contents of the emulated three-button LCD screen.
bool lcd_clear_line(int16_t line)
Clears the contents of a line of the emulated three-button LCD screen.
bool lcd_register_btn0_cb(lcd_btn_cb_fn_t cb)
Registers a callback function for the leftmost button.
bool lcd_register_btn1_cb(lcd_btn_cb_fn_t cb)
Registers a callback function for the center button.
bool lcd_register_btn2_cb(lcd_btn_cb_fn_t cb)
Registers a callback function for the rightmost button.
uint8_t lcd_read_buttons(void)
Gets the button status from the emulated three-button LCD.
void lcd_set_text_align(text_align_e_t alignment)
Changes the alignment of text on the LCD background.

Enums

enum lcd_text_align_e { LCD_TEXT_ALIGN_LEFT = 0, LCD_TEXT_ALIGN_CENTER = 1, LCD_TEXT_ALIGN_RIGHT = 2 }
Represents how to align the text in the LCD.

Typedefs

using lcd_btn_cb_fn_t = void(*)(void)

Defines

#define LCD_BTN_LEFT
#define LCD_BTN_CENTER
#define LCD_BTN_RIGHT