This commit is contained in:
2024-07-01 00:27:37 +02:00
parent f9c67a1f14
commit e7877c4782
50 changed files with 127 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ void* EEMEM settings_saved;
volatile uint8_t menu_state = 0;
volatile uint8_t update = 1;
#define SDI_SHIELD_ADDR 0x84
#define SDI_SHIELD_ADDR 0xDC
#define VF_BACK_PVW_TALLY_PIN 0
#define VF_BACK_PGM_TALLY_PIN 1
@@ -94,6 +94,15 @@ int main(void){
DDRC |= 1<<1;
PORTB |= (1<<VF_BACK_PGM_TALLY_PIN);
//lcd_printf("scan: ");
//for(uint8_t i=0; i<255; i++){
// uint8_t res = i2c_start(i);
// i2c_stop();
// if(!res)
// lcd_printf("%x ", i);
//}
_delay_ms(100);
lcd_printf("sdishield: ");
@@ -130,15 +139,7 @@ int main(void){
PORTB &= ~(1<<VF_FRONT_PGM_TALLY_PIN);
PORTB &= ~(1<<VF_BACK_PVW_TALLY_PIN);
/*
for(uint8_t i=0; i<255; i++){
uint8_t res = i2c_start(i);
i2c_stop();
if(!res)
lcd_printf("%x ", i);
}
*/
wdt_enable(WDTO_60MS);
sei();