liblvgl/include/liblvgl/llemu.hpp file

Contents

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::lcd

Functions

bool is_initialized(void)
Checks whether the emulated three-button LCD has already been initialized.
bool initialize(void)
Creates an emulation of the three-button, UART-based VEX LCD on the display.
bool shutdown(void)
Turns off the Legacy LCD Emulator.
bool set_text(std::int16_t line, std::string text)
Displays a string on the emulated three-button LCD screen.
bool clear(void)
Clears the contents of the emulated three-button LCD screen.
bool clear_line(std::int16_t line)
Clears the contents of a line of the emulated three-button LCD screen.
void register_btn0_cb(lcd_btn_cb_fn_t cb)
Registers a callback function for the leftmost button.
void register_btn1_cb(lcd_btn_cb_fn_t cb)
Registers a callback function for the center button.
void register_btn2_cb(lcd_btn_cb_fn_t cb)
Registers a callback function for the rightmost button.
void set_text_align(Text_Align alignment)
Sets the alignment to use for subsequent calls that print text to a line.
std::uint8_t read_buttons(void)
Gets the button status from the emulated three-button LCD.

Enums

enum class Text_Align { LEFT = 0, CENTER = 1, RIGHT = 2 }
Represents how to align the text in the LCD.