This commit is contained in:
Martin Brodbeck 2022-05-31 15:31:18 +02:00
parent ba95eeebb9
commit 5e7877b5d8

View file

@ -47,7 +47,7 @@ LCD::LCD(i2c_inst_t *i2c, const uint gpio_sda, const uint gpio_scl,
clear(); clear();
} }
// go to location on LCD // Go to location on LCD
void LCD::setCursor(int line, int position) { void LCD::setCursor(int line, int position) {
int val = (line == 0) ? 0x80 + position : 0xC0 + position; int val = (line == 0) ? 0x80 + position : 0xC0 + position;
sendByte(val, Mode::COMMAND); sendByte(val, Mode::COMMAND);