mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
In LiquidCrystal::begin(), use a define instead of a hardcoded 0
This commit is contained in:
parent
265ac7b59e
commit
8c6bcf0c84
@ -92,7 +92,7 @@ void LiquidCrystal::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
|
|||||||
setRowOffsets(0x00, 0x40, 0x00 + cols, 0x40 + cols);
|
setRowOffsets(0x00, 0x40, 0x00 + cols, 0x40 + cols);
|
||||||
|
|
||||||
// for some 1 line displays you can select a 10 pixel high font
|
// for some 1 line displays you can select a 10 pixel high font
|
||||||
if ((dotsize != 0) && (lines == 1)) {
|
if ((dotsize != LCD_5x8DOTS) && (lines == 1)) {
|
||||||
_displayfunction |= LCD_5x10DOTS;
|
_displayfunction |= LCD_5x10DOTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user