nguyenho5595 / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

HW SPI support for ST7920 #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is only software SPI mode for these LCD modules.
Would be it hard to code in hardware SPI?

Original issue reported on code.google.com by colin.ga...@gmail.com on 27 Nov 2012 at 5:32

GoogleCodeExporter commented 9 years ago
i guess you mean for the Arduino Environment. For ATMEGA i have already HW SPI 
support... I think it is possibloe. So todo is:
Add HW SPI support for ST7920 on Arduino Environment

Original comment by olikr...@gmail.com on 27 Nov 2012 at 6:10

GoogleCodeExporter commented 9 years ago
Ahh yes! I am sorry for missing that bit!

On a similar note, with the software SPI on a standard arduino, you dont need 
the
u8g microdelay with some modules.
I know the ST9720 module that i have doesnt need it, and it makes for a LOT 
faster screen draw.
It also might rely on the length of the wires used to the module as well.
Maybe another constructor with _no_delay_ ?

   u8g_MicroDelay();        /* 15 Aug 2012: added for high speed uC */
    val <<= 1;
    cnt--;
    *outClock &= bitNotClock;
    u8g_MicroDelay();       /* 15 Aug 2012: added for high speed uC */

Thanks for an awesome library by the way. 

Original comment by colin.ga...@gmail.com on 27 Nov 2012 at 6:20

GoogleCodeExporter commented 9 years ago
> I am sorry for missing that bit!
no problem, i did not expect that you see the difference here. It was more a 
note for myself as a result of my first analysis on this. Somehow i forgot to 
port atmega HW spi back to Arduino Environment

MicroDelay()
I see the problem, but i probably will keep it as it is for now. For 
inexperienced user it will work (slowly) and the experienced user will see the 
comments and might remove the delay. And with HW spi it will be faster for 
everybody...

Original comment by olikr...@gmail.com on 27 Nov 2012 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by olikr...@gmail.com on 27 Nov 2012 at 6:33

GoogleCodeExporter commented 9 years ago
HW SPI added and successfully tested

Original comment by olikr...@gmail.com on 20 Dec 2012 at 9:20

GoogleCodeExporter commented 9 years ago
finished, docu available

Original comment by olikr...@gmail.com on 20 Dec 2012 at 9:51

GoogleCodeExporter commented 9 years ago

Original comment by olikr...@gmail.com on 20 Dec 2012 at 9:52