First off the U8glib is fantastic. I’ve used it successfully with several displays. For me with my limited programming skills this library just lets me use displays and get on with my projects. Thank you Oliver.
On to my problem, I have a new LCD module with a UC1701 controller in it that I’m struggling to make work properly with U8glib. Looking at the “Supported Devices” table it’s not supported, but from my testing it almost is because it uses a UC1701 controller. Here’s what little I know about it:
Labelled: “Open Jumper, 12864”
Size: 47 x 38 x 4mm
Supply Voltage: VCC 4.5 to 5.5V (built-in booster circuit, no negative voltage required)
Controller: UC1701, Based on: 12864
Display: 128x64
Interface: SPI
Deal Extreme link to product I purchased.
Mini12864 Blue Backlight Dots Graphic LCD Display Module - Red - Free shipping - DealExtreme"
I’m using Ardunio v1.0.1 IDE, Arduino Uno R3 and U8glib v1.08 with the U8gLogo example sketch, I’ve added two lines:
u8g.setContrast(0); // in the setup
u8g.drawFrame(0, 0, 127, 63); // in the picture loop, helps determine screen edges / locations
Here’s what I’ve tried:
U8GLIB_DOGS102 u8g(13, 11, 10, 9); // expects 102x64 display mine is 128x64
- Image is about 5 pixels to the left, the right edge has random garbage pixels as expected due to 102 vs. 128 pixel width
- As listed in the “Supported Devices” table no contrast adjustment, screen is barely visible almost impossible to photograph
U8GLIB_DOGM128 u8g(13, 11, 10, 9);
- Again as listed in the “Supported Devices” table no contrast adjustment, screen is barely visible almost impossible to photograph
- Image is again about 5 pixels to the left and the right edge has random garbage pixels
- This is the closest I got the display to working
U8GLIB_DOGM132 u8g(13, 11, 10, 9); // expects 132x32 display some errors expected
- Contrast works without fault (0 seems to be the best value for my display), “Supported Devices” table might need updating
- Image is again about 5 pixels to the left but this time the right edge has no garbage pixels (perhaps something is cleared?)
- Only the top half of the image is drawn, as expected due to 32 vs. 64 pixel height
Note: I had to power cycle the display between testing as it seems to retain the display memory from previous programs.
Here’s some photos of the display using U8GLIB_DOGM132:
Would it be possible to support this device? I’m happy to perform any testing and provide photos for galleries (I’m a better photographer than programmer).
Corrections to version numbers made.