µOLED-160-G1 serial oled lib in the making

Thanks for your tips/time jluciani.

The types for x, y should be unsigned char since they never go negative.

After checking the extended reference about unsigned char i think i will go for byte because of

For consistency of Arduino programming style, the byte data type is to be preferred.

If you think you may want to use the uOLED 32024....

After reading (more like glancing over) the datasheet of uOLED 32024 i think i will stick to a uOLED-160-G1 only lib. There are some differences between the two. One is that they both use different graphical processors and some commands use different formats.

For the library I wrote I implemented my own serial output routines that use a circular buffer.

Although that is a more elegant solution i don't think that i implement that at this time. Main reason is that at this stage it gives me some confidence/clearity that the program will not advance before the last char is in the output buffer. At this point i don't mind the blocking of a serial.write.

Any more tips from the community are welcome.

Thanks again,

Jeroen