Skip to content

Commit

Permalink
Less changes for H and H4
Browse files Browse the repository at this point in the history
  • Loading branch information
DiSlord committed Aug 9, 2020
1 parent 8510524 commit bde499f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tlv320aic3204.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

11 changes: 8 additions & 3 deletions ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bde499f

Please sign in to comment.