Archive for the ‘library’ Category
Well, I can’t finish the PCB for this project yet (I’m planning make it with a Transformerless Power Supply), but I’m posting the Microchip C18 code for all that want work with this protocol.
Please, visit my download page.
For who need SH1101A OLED driver, I’m posting here my code (written in Microchip C18, but easly to port to other platform) to help more people on get use this great OLED display. It’s not finished, yet, but it’s very useful.
The code has geometric draw functions to draw single pixel, lines, rectangles and circles with fill option. There’s characters output functions too, with 8×6 pixel font.
The icons for Battery (animated), Bluetooth, WiFi, Sound (animated), etc are on the code too.
Some example of available functions are:
- SetPixel(), GetPixel();
- Character output functions, PutROMString(), PutString();
In the code you’ll find a DS18B20 Dallas OneWire Digital Temperature sensor driver too. That’s a limited version (only work for one sensor in OneWire bus) but works great. You get a float reading plus a string with temperature value (in Celsius Degrees). More improvements coming soon.
Well, let’s go to download link:
If you have any trouble with that code, email-me or let me a comment.