Skip to content

Commit

Permalink
improved rectangle drawing speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy-IT authored Jul 14, 2021
1 parent 132c1ec commit c43134c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion RB-TFT18.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion pxt.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit c43134c

Please # to comment.