adafruit / Adafruit_ILI9341

Library for Adafruit ILI9341 displays
416 stars 283 forks source link

rst logic broken for arm #6

Closed manitou48 closed 9 years ago

manitou48 commented 9 years ago

For arm rst pin is declared unsigned, so " if (_rst <0) ... " stuff is broken. Probably need to use unsigned for avr too, and preset/test with 255

Could add additional conditionals for Arduino ZERO vs DUE

tdicola commented 9 years ago

Thanks for catching the issue! Just fixed it by making the pin numbers signed ints and tested with an Arduino Zero.