|
15 | 15 | //=========================================================================== |
16 | 16 | // |
17 | 17 | #include "FastEPD.h" |
18 | | -#ifdef ARDUINO_ESP32C5_DEV |
| 18 | +#ifdef CONFIG_IDF_TARGET_ESP32C5 |
19 | 19 | #include "driver/parlio_tx.h" |
20 | 20 | #else |
21 | 21 | #include <esp_lcd_panel_io.h> |
@@ -208,7 +208,7 @@ const BBPANELDEF panelDefs[] = { |
208 | 208 | // width, height, bus_speed, flags, data[8], bus_width, ioPWR, ioSPV, ioCKV, ioSPH, ioOE, ioLE, |
209 | 209 | // ioCL, ioPWR_Good, ioSDA, ioSCL, ioShiftSTR/Wakeup, ioShiftMask/vcom, ioDCDummy, graymatrix, sizeof(graymatrix), iLinePadding |
210 | 210 | {1280, 720, 40000000, BB_PANEL_FLAG_MIRROR_Y, {8,23,10,9,24,25,26,27}, 8, 26, 0, 5, 4, 0, 2, |
211 | | - 3, 0, 7, 6, 0, 0, 0, u8GrayMatrix, sizeof(u8GrayMatrix), 16, -1600}, // BB_PANEL_SENSORIA_C5 |
| 211 | + 3, 0, 7, 6, 0, 0, 0, u8Ink5V2Matrix, sizeof(u8Ink5V2Matrix), 16, -1600}, // BB_PANEL_SENSORIA_C5 |
212 | 212 | }; |
213 | 213 | // |
214 | 214 | // Forward references for panel callback functions |
@@ -277,7 +277,7 @@ static uint8_t u8Cache[1024]; // used also for masking a row of 2-bit codes, nee |
277 | 277 | static gpio_num_t u8CKV, u8SPH; |
278 | 278 | static uint8_t bSlowSPH = 0; |
279 | 279 |
|
280 | | -#ifdef ARDUINO_ESP32C5_DEV |
| 280 | +#ifdef CONFIG_IDF_TARGET_ESP32C5 |
281 | 281 | parlio_tx_unit_config_t parlio_tx_config; |
282 | 282 | parlio_tx_unit_handle_t parlio_tx_handle; |
283 | 283 | static bool c5_notify_dma_ready(parlio_tx_unit_handle_t handle, const parlio_tx_done_event_data_t *edata, void *user_ctx) |
@@ -1450,7 +1450,7 @@ void bbepWriteRow(FASTEPDSTATE *pState, uint8_t *pData, int iLen, int bRowStep) |
1450 | 1450 | } |
1451 | 1451 | dma_is_done = false; |
1452 | 1452 | gpio_set_level((gpio_num_t)pState->panelDef.ioCKV, 1); // CKV on |
1453 | | -#ifdef ARDUINO_ESP32C5_DEV |
| 1453 | +#ifdef CONFIG_IDF_TARGET_ESP32C5 |
1454 | 1454 | parlio_transmit_config_t tx_cfg; |
1455 | 1455 | memset(&tx_cfg, 0, sizeof(tx_cfg)); |
1456 | 1456 | err = parlio_tx_unit_transmit(parlio_tx_handle, pData, (iLen + pState->panelDef.iLinePadding) * 8, &tx_cfg); |
@@ -1486,7 +1486,7 @@ int bbepIOInit(FASTEPDSTATE *pState) |
1486 | 1486 | if (rc != BBEP_SUCCESS) return rc; |
1487 | 1487 | pState->iPartialPasses = 4; // N.B. The default number of passes for partial updates |
1488 | 1488 | pState->iFullPasses = 5; // the default number of passes for smooth and full updates |
1489 | | -#ifdef ARDUINO_ESP32C5_DEV |
| 1489 | +#ifdef CONFIG_IDF_TARGET_ESP32C5 |
1490 | 1490 | memset(&parlio_tx_config, 0, sizeof(parlio_tx_config)); |
1491 | 1491 | parlio_tx_config.clk_src = PARLIO_CLK_SRC_DEFAULT; |
1492 | 1492 | parlio_tx_config.clk_in_gpio_num = (gpio_num_t)-1; // external clock disabled |
|
0 commit comments