Subversion Repositories Projects

Compare Revisions

Regard whitespace Rev 402 → Rev 403

/C-OSD/trunk/max7456_software_spi.c
93,19 → 93,14
}
 
/**
* clear display memory
* clear display by writing blank characters all over it
*/
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, 0b00000100);
 
// clearing takes 12uS according to maxim so lets wait longer
_delay_us(20);
}
}
 
/**
* write an ascii <character> to <address> of MAX7456 display memory