Boboter
Loading...
Searching...
No Matches
Device::Display Class Reference

#include <display.h>

Public Member Functions

 Display (Robot &robot)
 ~Display ()
void initialize ()
 Configures the LCD panel and all I2C components related to the display.
void shutdown ()
 Shuts down the LCD panel and the according I2C device.
void clear ()
 Clears the display.
void write_text (const char *text)
 Writes text to the display buffer at the current cursor position.
void set_cursor_position (uint8_t column, uint8_t row)
 Sets the position of the cursor.
void write_buffer_to_display ()
 Writes the display buffer to the display.

Constructor & Destructor Documentation

◆ Display()

Device::Display::Display ( Robot & robot)
explicit

◆ ~Display()

Device::Display::~Display ( )

Member Function Documentation

◆ clear()

void Device::Display::clear ( )

Clears the display.

◆ initialize()

void Device::Display::initialize ( )

Configures the LCD panel and all I2C components related to the display.

◆ set_cursor_position()

void Device::Display::set_cursor_position ( uint8_t column,
uint8_t row )

Sets the position of the cursor.

Parameters
columnThe target column, ranging from 0 to 15
rowThe target row, ranging from 0 to 7

◆ shutdown()

void Device::Display::shutdown ( )

Shuts down the LCD panel and the according I2C device.

◆ write_buffer_to_display()

void Device::Display::write_buffer_to_display ( )

Writes the display buffer to the display.

◆ write_text()

void Device::Display::write_text ( const char * text)

Writes text to the display buffer at the current cursor position.

Note
This does not change anything on the display, only on the internal display buffer
Parameters
textThe text to write to the display

The documentation for this class was generated from the following files: