diff --git a/RB-TFT18.ts b/RB-TFT18.ts index fd619c3..94db168 100644 --- a/RB-TFT18.ts +++ b/RB-TFT18.ts @@ -281,7 +281,8 @@ enum Color { // Draw rectangle for(let indexY = height ; indexY > 0 ; indexY--) { for(let indexX = width ; indexX > 0 ; indexX--) { - drawPixel(indexX, indexY, color) + pins.spiWrite(bgHiColor); + pins.spiWrite(bgLoColor); } } diff --git a/pxt.json b/pxt.json index 402ef3b..c82d06d 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "RB-TFT1.8", - "version": "1.0.3", + "version": "1.0.4", "description": "MakeCode Package for the RB-TFT1.8 (ST7735 1.8' TFT Display).", "license": "MIT", "dependencies": {