diff --git a/main.c b/main.c index 840cb292..fa82f522 100644 --- a/main.c +++ b/main.c @@ -688,6 +688,7 @@ config_t config = { // .touch_cal = { 693, 605, 124, 171 }, // 2.4 inch LCD panel .touch_cal = { 338, 522, 153, 192 }, // 2.8 inch LCD panel // .touch_cal = { 272, 521, 114, 153 }, //4.0" LCD + .freq_mode = FREQ_MODE_START_STOP, .harmonic_freq_threshold = FREQUENCY_THRESHOLD, .vbat_offset = 500, .bandwidth = BANDWIDTH_1000 diff --git a/tlv320aic3204.c b/tlv320aic3204.c index bcc5f979..d75504d6 100644 --- a/tlv320aic3204.c +++ b/tlv320aic3204.c @@ -396,4 +396,3 @@ void tlv320aic3204_set_gain(uint8_t lgain, uint8_t rgain) // tlv320aic3204_config(data, sizeof(data)/2); tlv320aic3204_bulk_write(data, sizeof(data)); } - diff --git a/ui.c b/ui.c index 4cb91ec7..a957741b 100644 --- a/ui.c +++ b/ui.c @@ -495,9 +495,14 @@ show_version(void) RTC_TR_SEC(dr)); ili9341_drawstring(buffer, x, y); #endif -// uint32_t vbat = adc_vbat_read(); -// plot_printf(buffer, sizeof(buffer), "Battery: %d.%03dV", vbat/1000, vbat%1000); -// ili9341_drawstring(buffer, x, y + FONT_STR_HEIGHT + 2); +#if 0 + uint32_t vbat=0; + for(i=0;i<32;i++) + vbat+=adc_vbat_read(); + vbat>>=5; + plot_printf(buffer, sizeof(buffer), "Battery: %d.%03dV", vbat/1000, vbat%1000); + ili9341_drawstring(buffer, x, y + FONT_STR_HEIGHT + 2); +#endif } touch_start_watchdog();