Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 402 → Rev 401

/C-OSD/trunk/main.c
353,10 → 353,16
spi_send_byte(0x00, 0b01001000);
}
 
// clear all display-mem (DMM)
spi_send_byte(0x04, 0b00000100);
 
// clearing takes 12uS according to maxim so lets wait longer
_delay_us(120);
 
// 8bit mode
spi_send_byte(0x04, 0b01000000);
 
// clear display
// write blank chars to whole screen
clear();
 
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
502,7 → 508,7
write_ndigit_number_s(18, 5, max_Altimeter / 30, 1000, 0);
write_char_xy(22, 5, 204); // small meters m
write_ascii_string_pgm(2, 6, stats_item_pointers[1]); // max Speed
write_ndigit_number_u(19, 6, (uint16_t) (((uint32_t) max_GroundSpeed * (uint32_t)9) / (uint32_t)250), 100, 0);
write_ndigit_number_u(19, 6, (uint16_t) (((uint32_t) max_GroundSpeed * (uint32_t)9) / (uint32_t)250), 100, 0);
write_char_xy(22, 6, 203); // km/h
write_ascii_string_pgm(2, 7, stats_item_pointers[2]); // max Distance
write_ndigit_number_u(19, 7, max_Distance / 100, 100, 0);