Subversion Repositories Projects

Rev

Rev 402 | Rev 404 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 402 Rev 403
Line 351... Line 351...
351
    } else {
351
    } else {
352
        // PAL + enable display immediately (VM0)
352
        // PAL + enable display immediately (VM0)
353
        spi_send_byte(0x00, 0b01001000);
353
        spi_send_byte(0x00, 0b01001000);
354
    }
354
    }
Line -... Line 355...
-
 
355
 
-
 
356
    // clear all display-mem (DMM)
-
 
357
    spi_send_byte(0x04, 0b00000100);
-
 
358
 
-
 
359
    // clearing takes 12uS according to maxim so lets wait longer
-
 
360
    _delay_us(120);
355
 
361
 
356
    // 8bit mode
362
    // 8bit mode
Line 357... Line 363...
357
    spi_send_byte(0x04, 0b01000000);
363
    spi_send_byte(0x04, 0b01000000);
358
 
364
 
Line 359... Line 365...
359
    // clear display
365
    // write blank chars to whole screen
360
    clear();
366
    clear();
361
 
367