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.
I moved commandMode variable into the updateBufferData because I didn't think it was used anywhere else. The variable is not used anywhere else, but the function depends on the command being stored towards the end of the function. Summary: commandMode needs to be global. This fixes my mistake.
Code should now work on Serial7Segment hardware directly. Use the Serial_ColonDots example sketch to test it.
I added brightness support to the SevSeg library. I'm fairly happy with it. Works well with the OpenSegment backpack. I need to get a S7S backpack for testing as well.
Many changes but the major one was adding the ability to reset the UART to 9600 when the RX is pulled low for a certain amount of time. This affected boot up, EEPROM locations, and the way that the UART is controlled. We now initialize the UART using standard Arduino calls instead of hardware registers. This commit works well with the BasicSerial example code. Even though there are quite a few code changes, the test code (BasicSerial) leads me to believe it works bug free.
This is nothing but whitespace changes.
SevSeg library supports both common anode and cathode. Please test. From here, I plan to make many smaller firmware changes (that do not related to how segments are actually displayed). I need to get the products with a ATmega type backpack (Serial7Segment and OpenSegment) to this library so that we can use similar code, but with different pin definitions.
Arduino has to have the file name same as directory. Removed version number from file. Repo should be able to handle file versions.