Skip to content

Commit

Permalink
prepare debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Nov 13, 2023
1 parent 8b960df commit 9a12f78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/screen_diag/main/epd.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static int s_temperature;

void initialize_screen(void)
{
epd_init(&DEMO_BOARD, &ED097TC2, EPD_LUT_64K);
epd_init(&DEMO_BOARD, &ED060XC3, EPD_LUT_64K);
// Set VCOM for boards that allow to set this in software (in mV).
// This will print an error if unsupported. In this case,
// set VCOM using the hardware potentiometer and delete this line.
Expand Down
18 changes: 9 additions & 9 deletions src/output_lcd/lcd_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "../output_common/render_method.h"

#ifdef RENDER_METHOD_LCD
//#ifdef RENDER_METHOD_LCD

#include <assert.h>
#include <stddef.h>
Expand Down Expand Up @@ -60,7 +60,7 @@ static inline int max(int x, int y) { return x > y ? x : y; }
#define S3_LCD_PIN_NUM_BK_LIGHT -1
//#define S3_LCD_PIN_NUM_MODE 4

#define LINE_BATCH 1000
#define LINE_BATCH 500
#define BOUNCE_BUF_LINES 4

#define RMT_CKV_CHAN RMT_CHANNEL_1
Expand Down Expand Up @@ -267,7 +267,7 @@ IRAM_ATTR static void lcd_isr_vsync(void *args)
// apparently, this is needed for the new timing to take effect.
lcd_ll_start(lcd.hal.dev);
// ensure we skip "vsync" with CKV, so we don't skip a line.
esp_rom_delay_us(lcd.line_length_us);
esp_rom_delay_us(lcd.config.ckv_high_time / 10);
start_ckv_cycles(ckv_cycles);
}

Expand Down Expand Up @@ -544,11 +544,11 @@ void epd_lcd_set_pixel_clock_MHz(int frequency) {
ckv_rmt_build_signal();
}

#else
// #else

/// Dummy implementation to link on the old ESP32
void epd_lcd_init(const LcdEpdConfig_t* config, int display_width, int display_height) {
assert(false);
}
// /// Dummy implementation to link on the old ESP32
// void epd_lcd_init(const LcdEpdConfig_t* config, int display_width, int display_height) {
// assert(false);
// }

#endif // S3 Target
//#endif // S3 Target

0 comments on commit 9a12f78

Please sign in to comment.