Fix compiler warnings about narrowing conversion

The latest 1.5.7 beta release of Arduino includes an updated toolchain
which now issues warnings about narrowing of ints to chars inside curly
braces becoming ill-formed in C++11.  Explicitly cast the values to char
to prevent this.
Merge pull request #57 from ribbons/compiler-warnings

Fix compiler warnings about narrowing conversion