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 Display Module

Revision:
11:8b441dd1d470
Parent:
7:6cd8c36cbdb3
--- a/DmTftBase.cpp	Wed Jul 09 08:31:34 2014 +0000
+++ b/DmTftBase.cpp	Wed Sep 10 12:47:47 2014 +0000
@@ -33,13 +33,11 @@
 void DmTftBase::setPixel(uint16_t x, uint16_t y, uint16_t color) {
   cbi(_pinCS, _bitmaskCS);
 
-  if ((x >= _width) || (y >= _height)) {
-    return;
+  if ((x < _width) && (y < _height)) {
+    setAddress(x, y, x, y);
+    sendData(color);
   }
 
-  setAddress(x, y, x, y);
-
-  sendData(color);
   sbi(_pinCS, _bitmaskCS);
 }