adafruit / Adafruit_HX8357_Library

Arduino library for HX8357
43 stars 37 forks source link

error in drawPixel #3

Closed gale3313 closed 8 years ago

gale3313 commented 8 years ago

I believe drawPixel should be revised.

This line: setAddrWindow(x,y,x+1,y+1);

should be: setAddrWindow(x,y,x,y);

Otherwise, it seems to be impossible to draw pixels (or lines) on row or column 319 or 479.

For more information, see https://forums.adafruit.com/viewtopic.php?f=22&t=92900

ladyada commented 8 years ago

you're right! i've fixed and also added SPI xactions which will make it more cross-platform. thank you :) :) :)