Modified version of the DmTftLibrary, optimized for the LPC4088 Experiment Base Board
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
--- 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);