Subversion Repositories Projects

Rev

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

Rev 379 Rev 402
Line 91... Line 91...
91
    uint16_t address = y * 30 + x;
91
    uint16_t address = y * 30 + x;
92
    write_char_att(address, attribute);
92
    write_char_att(address, attribute);
93
}
93
}
Line 94... Line 94...
94
 
94
 
95
/**
95
/**
96
 *  clear display by writing blank characters all over it
96
 *  clear display memory
97
 */
97
 */
98
void clear(void) {
98
void clear(void) {
99
    uint16_t memory_address = 0;
99
    /*uint16_t memory_address = 0;
100
    for (unsigned int a = 0; a < 480; a++) {
100
    for (unsigned int a = 0; a < 480; a++) {
101
        write_char(memory_address++, 0);
101
        write_char(memory_address++, 0);
-
 
102
    }*/
-
 
103
        // clear all display-mem (DMM)
-
 
104
    spi_send_byte(0x04, 0b00000100);
-
 
105
 
-
 
106
    // clearing takes 12uS according to maxim so lets wait longer
102
    }
107
    _delay_us(20);
Line 103... Line 108...
103
}
108
}
104
 
109
 
105
/**
110
/**