change startup blink sequence

main
agsler 2 years ago
parent 90410deb08
commit a3f9ae1839

@ -88,15 +88,12 @@ int main(void){
i2c_init(); // initialize I2C library i2c_init(); // initialize I2C library
DDRC |= 1<<0; DDRC |= 1<<1;
PORTB |= (1<<VF_BACK_PVW_TALLY_PIN); PORTB |= (1<<VF_BACK_PGM_TALLY_PIN);
_delay_ms(100); _delay_ms(100);
PORTB |= (1<<VF_FRONT_PGM_TALLY_PIN); lcd_printf("sdishield: ");
PORTB |= (1<<VF_BACK_PGM_TALLY_PIN);
lcd_printf("id: ");
i2c_start_wait(SDI_SHIELD_ADDR + I2C_WRITE); // set device address and write mode i2c_start_wait(SDI_SHIELD_ADDR + I2C_WRITE); // set device address and write mode
i2c_write(0x00); i2c_write(0x00);
i2c_write(0x00); i2c_write(0x00);
@ -117,17 +114,18 @@ int main(void){
lcd_printf("hw: %d.%d", hw0, hw1); lcd_printf("hw: %d.%d", hw0, hw1);
lcd_printf(" fw: %d.%d", fw0, fw1); lcd_printf(" fw: %d.%d", fw0, fw1);
DDRC |= 1<<1; DDRC |= 1<<0;
PORTB &= ~(1<<VF_BACK_PVW_TALLY_PIN); PORTB |= (1<<VF_BACK_PVW_TALLY_PIN);
PORTB |= (1<<VF_FRONT_PGM_TALLY_PIN);
_delay_ms(500); _delay_ms(500);
lcd_clear(); lcd_clear();
PORTB &= ~(1<<VF_FRONT_PGM_TALLY_PIN);
// Turn LEDs off // Turn LEDs off
DDRC &= ~(1<<0); DDRC &= ~(1<<0);
DDRC &= ~(1<<1); DDRC &= ~(1<<1);
PORTB &= ~(1<<VF_FRONT_PGM_TALLY_PIN);
PORTB &= ~(1<<VF_BACK_PVW_TALLY_PIN);
/* /*
for(uint8_t i=0; i<255; i++){ for(uint8_t i=0; i<255; i++){

Loading…
Cancel
Save