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 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
 */
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
-
 
107
    _delay_us(20);
102
    }
Line 108... Line 103...
108
}
103
}
109
 
104
 
110
/**
105
/**