olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.26k stars 316 forks source link

u8g_dev_st7920_128x64 memory transfer #27

Open olikraus opened 9 years ago

olikraus commented 9 years ago

Originally reported on Google Code with ID 27

n the device "u8g_dev_st7920_128x64" the current code is:
[code]
    u8g_WriteByte(u8g, dev, 0x080 | y );      /* y pos  */
    u8g_WriteByte(u8g, dev, 0x080  );      /* set x pos to 0*/
[/code]
this must be changed to:
[code]
    if ( y < 32 )
    {
        u8g_WriteByte(u8g, dev, 0x080 | y );      /* y pos  */
        u8g_WriteByte(u8g, dev, 0x080  );      /* set x pos to 0*/
    }
    else
    {
        u8g_WriteByte(u8g, dev, 0x080 | (y-32) );      /* y pos  */
        u8g_WriteByte(u8g, dev, 0x080 | 4);      /* set x pos to 64*/
    }
[/code]

Reported by olikraus on 2012-01-24 11:46:48

olikraus commented 9 years ago
done

Reported by olikraus on 2012-01-24 20:28:45