Change int to uint8_t

Change int to uint8_t in appropriate areas. Useful for arduino as 8-bit
values are faster to work with than the 16-bit integer that it defaults
to.
Merge pull request #1 from rjbohinski/master

Change int to uint8_t