Uses the same fonts as the SPI_TFT_ILI9341 Library (I have many, and a html/php font editor for that)
Diff: SPI_TFT_ILI9225.cpp
- Revision:
- 16:4dd508313fce
- Parent:
- 15:4b8c052d386a
- Child:
- 17:b120858d05ff
--- a/SPI_TFT_ILI9225.cpp Wed Nov 23 22:31:37 2016 +0000 +++ b/SPI_TFT_ILI9225.cpp Wed Nov 23 22:39:43 2016 +0000 @@ -8,14 +8,15 @@ 176*220 resolution / 11-pin / ILI9225 IC driver https://www.fasttech.com/product/3842400-2-2-serial-spi-tft-color-lcd-module-for-arduino -- uses the same fonts as the SPI_TFT_ILI9341 Library (I have many, and a html/php font editor for that) -- some code removed, some added, some changed -- the led backlight is using a PWM output, so it can be adjusted (0.0f = off - 1.0f = on) -- added formatted printf -- added claim as standard output on stream +- Now uses the same fonts as the SPI_TFT_ILI9341 Library (I have many, and a html/php font editor for that) +- Some code removed, some added, some changed +- The led backlight is using a PWM output, so it can be adjusted in brightness (from 0.0f = off to 1.0f = full brightness) +- Added formatted printf +- Added claim as standard output on stream - Orientation definitions are now related to the SD card slot location (front view) -- hline and vline added, also used by outline reactangles, with drastical performance improvement (15 times) -- performance boost for filled shapes using new vline and hline functions +- Fast line functions hline and vline added, also used by outline reactangles, with drastical performance improvement (15 times) +- Performance boost for filled shapes using new vline and hline functions +- Get getStringWidth added */ #include "SPI_TFT_ILI9225.h" @@ -672,7 +673,7 @@ width += hor; } } - return width; + return width - 1; } void TFT_22_ILI9225::foreground(uint16_t color)