SSD1289 SSD2119: fixed warning messages

Few type castings in order to suppress warnings (-Wsign-compare):
"comparison between signed and unsigned integer expressions"
"signed and unsigned type in conditional expression"
Merge pull request #45 from resset/master

SSD1289 SSD2119: fixed warning messages