/C-OSD/trunk/main.c |
---|
353,7 → 353,7 |
spi_send_byte(0x00, 0b01001000); |
} |
// clear all display-mem (DMM) |
/*// clear all display-mem (DMM) |
spi_send_byte(0x04, 0b00000100); |
// clearing takes 12uS according to maxim so lets wait longer |
360,9 → 360,9 |
_delay_us(120); |
// 8bit mode |
spi_send_byte(0x04, 0b01000000); |
spi_send_byte(0x04, 0b01000000);*/ |
// write blank chars to whole screen |
// clear display memory and set to 8bit mode |
clear(); |
#if !(ALLCHARSDEBUG|(WRITECHARS != -1)) |
/C-OSD/trunk/max7456_software_spi.c |
---|
93,14 → 93,20 |
} |
/** |
* clear display by writing blank characters all over it |
* clear display memory |
* (also sets 8bit mode) |
*/ |
void clear(void) { |
uint16_t memory_address = 0; |
/*uint16_t memory_address = 0; |
for (unsigned int a = 0; a < 480; a++) { |
write_char(memory_address++, 0); |
}*/ |
// clear all display-mem (DMM) |
spi_send_byte(0x04, 0b01000100); |
// clearing takes 12uS according to maxim so lets wait longer |
_delay_us(20); |
} |
} |
/** |
* write an ascii <character> to <address> of MAX7456 display memory |
/C-OSD/trunk/max7456_software_spi.h |
---|
64,7 → 64,8 |
void write_char_att_xy(uint8_t, uint8_t, char attribute); |
/** |
* clear display by writing blank characters all over it |
* clear display memory |
* (also sets 8bit mode) |
*/ |
void clear(void); |