Subversion Repositories Code-Repo

Rev

Rev 155 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 155 Rev 157
Line 249... Line 249...
249
        default:
249
        default:
250
            break;
250
            break;
251
    }
251
    }
252
 
252
 
253
    // Need to do this for some reason since x + (y / 8) * SSD1306_LCDWIDTH returns -128?!
253
    // Need to do this for some reason since x + (y / 8) * SSD1306_LCDWIDTH returns -128?!
254
    // TODO: Change this back when they fix the interrupt routine code
254
    // TODO: Change this back when they fix the compiler
255
    int loc = (y / 8) * SSD1306_LCDWIDTH;
255
    int loc = (y / 8) * SSD1306_LCDWIDTH;
256
    loc += x;
256
    loc += x;
257
    // x is which column
257
    // x is which column
258
    if (color == SSD1306_WHITE) {
258
    if (color == SSD1306_WHITE) {
259
        LCD_BUFFER[loc] |= 1<<(y % 8);
259
        LCD_BUFFER[loc] |= 1<<(y % 8);