Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: lpc4088_ebb_dm_calc lpc4088_ebb_dm_bubbles
Fork of DmTftLibrary by
Diff: DmTftBase.cpp
- Revision:
- 7:6cd8c36cbdb3
- Parent:
- 0:d6ff5fa503e8
- Child:
- 11:8b441dd1d470
diff -r fde03297017b -r 6cd8c36cbdb3 DmTftBase.cpp --- a/DmTftBase.cpp Fri May 23 08:10:09 2014 +0000 +++ b/DmTftBase.cpp Fri Jul 04 09:26:32 2014 +0000 @@ -33,6 +33,10 @@ void DmTftBase::setPixel(uint16_t x, uint16_t y, uint16_t color) { cbi(_pinCS, _bitmaskCS); + if ((x >= _width) || (y >= _height)) { + return; + } + setAddress(x, y, x, y); sendData(color);