Changeset 39561


Ignore:
Timestamp:
12/31/16 15:34:52 (6 years ago)
Author:
gost
Message:

dm900 fix oled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/oled.h

    r39555 r39561  
    6363                for(i = 0; i < xres*yres*2; i = i + 2)
    6464                {
     65                        lfb2[i] = ((buf[bi] << 3) & 0xE0) | ((buf[bi+1] >> 3) & 0x1F);
     66                        lfb2[i+1] = (buf[bi+2] & 0xF8) | ((buf[bi] >> 3) & 0x07);
     67                        bi = bi + 4;
    6568                       
    66                         lfb1[i] = ((buf[bi] << 3) & 0xE0) | ((buf[bi+1] >> 3) & 0x1F);
    67                         lfb1[i+1] = (buf[bi+2] & 0xF8) | ((buf[bi] >> 3) & 0x07);
    68                         bi = bi + 4;
    6969                }
    70                 ret = write(lcdfd1, lfb1, xres * yres * 2);
     70                ret = write(lcdfd1, lfb2, xres * yres * 2);
    7171                if(ret != xres * yres * 2)
    7272                        err("write to oled dm900 - %s - was not ok", getconfig("vfddev", NULL));
Note: See TracChangeset for help on using the changeset viewer.