diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-06-04 22:19:47 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-06-04 22:19:47 +1000 |
commit | 381fc9caf327bd6297a0db274ba2a62ece5141ac (patch) | |
tree | 4cdcbe2b77ec183354f20bbea04bab8b7a43d043 /libraries/MultiLCD/ILI9341.cpp | |
parent | 7419eb31668c0c95881885a8cb4fd41f3007ce8f (diff) | |
download | 2021-arduino-obd-381fc9caf327bd6297a0db274ba2a62ece5141ac.tar.gz 2021-arduino-obd-381fc9caf327bd6297a0db274ba2a62ece5141ac.tar.bz2 2021-arduino-obd-381fc9caf327bd6297a0db274ba2a62ece5141ac.zip |
Update MultiLCD library
Inheriting modified UTFT library
Added support for SSD1289
Diffstat (limited to 'libraries/MultiLCD/ILI9341.cpp')
-rw-r--r-- | libraries/MultiLCD/ILI9341.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/MultiLCD/ILI9341.cpp b/libraries/MultiLCD/ILI9341.cpp index 5c6df57..32b2356 100644 --- a/libraries/MultiLCD/ILI9341.cpp +++ b/libraries/MultiLCD/ILI9341.cpp @@ -241,8 +241,8 @@ void LCD_ILI9341::begin (void) clear(); backlight(true); - setTextColor(0xffff); - SetBGColor(0); + setColor(0xffff); + setBackColor(0); } uint8_t LCD_ILI9341::readID(void) @@ -487,7 +487,7 @@ void LCD_ILI9341::draw(const PROGMEM byte* buffer, uint16_t width, uint16_t heig m_x += width; } -void LCD_ILI9341::draw2x(const PROGMEM byte* buffer, byte width, byte height) +void LCD_ILI9341::draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height, byte scaleX, byte ScaleY) { byte rows = height >> 3; setXY(m_y, m_y + height * 2 - 1, m_x, m_x + width * 2 - 1); |