jorgetonetto / u8glib

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

u8g_dev_st7920_128x64 memory transfer #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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]

Original issue reported on code.google.com by olikr...@gmail.com on 24 Jan 2012 at 11:46

GoogleCodeExporter commented 8 years ago
done

Original comment by olikr...@gmail.com on 24 Jan 2012 at 8:28