diff --git a/src/xpcc/driver/display/hd44780_impl.hpp b/src/xpcc/driver/display/hd44780_impl.hpp index 94a78f4e5..3b3cfc511 100644 --- a/src/xpcc/driver/display/hd44780_impl.hpp +++ b/src/xpcc/driver/display/hd44780_impl.hpp @@ -42,9 +42,9 @@ xpcc::Hd44780::setCursor(uint8_t column, uint8_t line) this->column = (column <= this->lineWidth ? column : this->lineWidth); this->line = (line <= this->lineCount ? line : this->lineCount); - uint8_t address = this->column + 0x40 * this->line; + uint8_t address = this->column + 0x40 * (this->line % 2); if (this->line >= 2) { - address += 20; + address += 16; } while(!driver::writeAddress(address)) ;