mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'fix/fix_parlio_tx_sample_edge' into 'master'
change(parlio_tx): use shift edge instead sample edge See merge request espressif/esp-idf!46628
This commit is contained in:
+1
-1
@@ -160,7 +160,7 @@ void app_main(void)
|
||||
.output_clk_freq_hz = EXAMPLE_LED_MATRIX_PIXEL_CLOCK_HZ,
|
||||
.trans_queue_depth = 4,
|
||||
.max_transfer_size = (EXAMPLE_LED_MATRIX_H_RES + EXAMPLE_GAP_CYCLE_PER_LINE) * EXAMPLE_LED_MATRIX_V_RES / 2 * sizeof(uint16_t), // full frame as the maximum transfer size
|
||||
.sample_edge = PARLIO_SAMPLE_EDGE_POS,
|
||||
.shift_edge = PARLIO_SHIFT_EDGE_NEG,
|
||||
};
|
||||
parlio_transmit_config_t transmit_config = {
|
||||
.idle_value = 0x00, // the idle value will take no effect since we are using the loop mode
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@ void app_main(void)
|
||||
.output_clk_freq_hz = EXAMPLE_LED_MATRIX_PIXEL_CLOCK_HZ,
|
||||
.trans_queue_depth = 32,
|
||||
.max_transfer_size = EXAMPLE_LED_MATRIX_H_RES * sizeof(uint8_t) * 2, // 2 lines as the maximum transfer size
|
||||
.sample_edge = PARLIO_SAMPLE_EDGE_POS,
|
||||
.shift_edge = PARLIO_SHIFT_EDGE_NEG,
|
||||
};
|
||||
ESP_ERROR_CHECK(parlio_new_tx_unit(&config, &tx_unit));
|
||||
ESP_ERROR_CHECK(parlio_tx_unit_enable(tx_unit));
|
||||
|
||||
Reference in New Issue
Block a user