adafruit / TFTLCD-Library

Arduino library for 8-bit TFT LCDs such as ILI9325, ILI9328, etc
http://www.ladyada.net/products/tfttouchbreakout/ and http://www.ladyada.net/products/tfttouchshield
314 stars 259 forks source link

Backwards Compatibility #6

Closed myoung34 closed 11 years ago

myoung34 commented 11 years ago

Some methods such as readRegister() are missing in the new commit, which breaks backwards compatibility with older items.

PaintYourDragon commented 11 years ago

readRegister() was only observed reading register #0 (to get the driver ID), so readID() was intended as a more efficient replacement. Do you have a situation where other registers are needing to be read?

myoung34 commented 11 years ago

No, but now that I realize that I can work on changing the code. It was a leftover artifact from an example I built around.

myoung34 commented 11 years ago

Namely an artifact from developing around this blob: https://github.com/adafruit/TFTLCD-Library/blob/ca4b16ac34711d203c54499ca49d6e0582545622/examples/tftpaint/tftpaint.pde