|
601
|
Using Arduino / Displays / Re: ST7565 GLCD Library Functions
|
on: January 23, 2012, 12:47:36 am
|
Currently, my pin assignments are: 11-SID (MOSI), 13-SCK, 9-A0/RS, 6-RST, 10-CS
I uncommented line 54 (U8GLIB_LM6059) in the HelloWorld example program for the u8glib library. When I upload the HelloWorld program with this modification, nothing is displayed. If I then upload the dogm128 example program GraphicTest, it works as expected. Did you also added the reset pin? Instead of //U8GLIB_LM6059 u8g(13, 11, 10, 9); // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
use U8GLIB_LM6059 u8g(13, 11, 10, 9, 6); // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
If the LM6059 device does not work, it might be also interesting to see if the LM6063 will show something on the display: U8GLIB_LM6063 u8g(13, 11, 10, 9, 6);
I am glad that the dogm128 lib works. Documentation: Will sent PM. Oliver
|
|
|
|
|
604
|
Using Arduino / Displays / Re: ST7565 GLCD Library Functions
|
on: January 22, 2012, 05:15:51 am
|
|
Hi
There had been one person who contributed the Adafruit code for the dogm128 lib. I know that it once worked, but I do not own this device, so I am not able to maintain it. I only know, that it was different to the other displays with same controller.
The U8glib does not include the specific code for the Adafruit device. Maybe I can port the code from dogm128 to u8glib. But then I would need someone else to test it.
A0 pin: It is always there, but often named different. Identical are: RS: Register Select DI: Data / Instruction
So A0, RS, DI are all the same.
Oliver
|
|
|
|
|
608
|
Using Arduino / Displays / Re: ST7920 Interface Question
|
on: January 19, 2012, 07:00:05 am
|
|
@Bill
Yes sure, I fully agree: FPS is difficult to measure and dangerous to compare. I just wanted to say, that I am very confident that U8glib will be faster than 1 FPS.
@dc42 I agree, shiftOut is very slow. There had been some discussion about improvements here. I also wrote my high speed version. I guess for the atmega328 HW SPI is always faster than SW SPI. Things change with the PIC32 of a ChipKit board. SW SPI has equal speed. Indeed, I had to slow down SW SPI, otherwise speed is above specification and i indeed go dropouts on the display.
There is only one issue with the Atmel HW SPI subsystem. Of course we need clock and data out lines. But additionally the HW SPI subsystem occupies the "data in" line. So we loose one line here (at least to what i know, and i never was able to use this pin for something else) Oliver
|
|
|
|
|
609
|
Using Arduino / Displays / Re: ST7920 Interface Question
|
on: January 18, 2012, 11:20:16 am
|
|
Just to clarify my initial post on u8glib: It does not use a full frame buffer, it does not need read access to the display memory, it works fine with SPI, it usually has 20 and more frame per second. But unfortunately there is no low level driver for the ST7920 at the moment...
Oliver
|
|
|
|
|
610
|
Using Arduino / Displays / Re: ST7920 Interface Question
|
on: January 17, 2012, 06:31:43 pm
|
|
Hi
U8glib does not yet support this controller. I have a display with this controller here. I always wanted to build something with it, but did not do so until no. So, there is no driver for the ST7920 yet.
SPI: Usually HW SPI is faster, especially for a slow CPU. I did not measure parallel bus yet.
Oliver
|
|
|
|
|
611
|
Using Arduino / Displays / Re: Problem solved! -->ST7565R LCD going haywire with Adafruit code
|
on: January 17, 2012, 03:56:10 pm
|
Hi Chris Thats all good news. I modified the code in the u8glib repository so that it matches your code. However, I also did this: You may also replace 0x0a3 in line 80 by 0x0a2, which was suggested in the lm6063 datasheet. This could improve the contrast a little bit. Font: Use the setFont member procedure to assign a font: http://code.google.com/p/u8glib/wiki/userreference#setFontFonts are described here: http://code.google.com/p/u8glib/wiki/fontgroupAll fonts start with "u8g_font_". For example "u8g_font_osr18" will select the "OldStandard" font with a capital A of 18 pixel height. Note, that not all pixel heights are available, but this is all documented in the wiki pages. There should be a screenshot for every font. Console Example: Thanks for the hint and, well, all is still beta. I have created an issue tracker for that and will check it. Also thanks for the Arduino 1.0 correction. Pin/Wiring: No issue, you can select whatever pins are suitable for you. Oliver
|
|
|
|
|
612
|
Using Arduino / Displays / Re: ST7920 Interface Question
|
on: January 17, 2012, 09:00:45 am
|
Hi With my (similar) displays, I usually see more than 15 frames per seconds with Arduino Uno. I once reached 73 fps with a ChipKit Uno and a serial dogs102 display. I could assist you to write a low level driver for http://code.google.com/p/u8glib/There should also be a st7920 in my lab, but i did not have time until now to wire it and write that low level driver. Oliver
|
|
|
|
|
615
|
Using Arduino / Displays / Re: ST7565 LCD going haywire with Adafruit code
|
on: January 17, 2012, 05:20:07 am
|
Hi However, everything is mirrored! Sure, i just copied the adafruit init sequence. Please do the following: 1. Locate file u8g_dev_st7565_lm6063.c (.../libraries/U8glib/utility/...) 2. Try: Replace 0x0a0 with 0x0a1 (line 81), then compile and check if you see improvements 3. Try: Replace 0x0c0 with 0x0c8 (line 82), then compile and check if you see improvements Please let me know, if 2. or 3. or both will lead to the correct result. You may also replace 0x0a3 in line 80 by 0x0a2, which was suggested in the lm6063 datasheet. BTW: your display is fine. The missing 4 lines are because of the fact, that the controller has a 132x64 memory, but the LCD itself is 128x64. While mirrored, we write to the 4 invisible rows. Oliver
|
|
|
|
|