Corrected device mode bug and library init bug.

Device mode has to be an unsigned char because upon first power up the
EEPROM is 0xFF (-1 or 255). The 1" displays are common cathode but with
the PNP/NPN configuration of OpenSegment, it actually inverts the
signals so we need to use common anode to get the library to work.