Subversion Repositories Projects

Rev

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

Rev 403 Rev 404
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 memory
96
 *  clear display by writing blank characters all over it
97
 *  (also sets 8bit mode)
97
 */
98
 */
98
void clear(void) {
99
void clear(void) {
99
    uint16_t memory_address = 0;
100
    /*uint16_t memory_address = 0;
100
    for (unsigned int a = 0; a < 480; a++) {
101
    for (unsigned int a = 0; a < 480; a++) {
101
        write_char(memory_address++, 0);
102
        write_char(memory_address++, 0);
-
 
103
    }*/
-
 
104
        // clear all display-mem (DMM)
-
 
105
    spi_send_byte(0x04, 0b01000100);
-
 
106
 
-
 
107
    // clearing takes 12uS according to maxim so lets wait longer
102
    }
108
    _delay_us(20);
Line 103... Line 109...
103
}
109
}
104
 
110
 
105
/**
111
/**