From 80a3acdcfa6a7e0c7db6dba45e35028859de1e96 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Fri, 22 Nov 2024 14:13:21 -0600 Subject: [PATCH] updated generated ws28128.pio.h --- pio/ws2812/generated/ws2812.pio.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/pio/ws2812/generated/ws2812.pio.h b/pio/ws2812/generated/ws2812.pio.h index 4a564101f..100af23ee 100644 --- a/pio/ws2812/generated/ws2812.pio.h +++ b/pio/ws2812/generated/ws2812.pio.h @@ -16,16 +16,16 @@ #define ws2812_wrap 3 #define ws2812_pio_version 0 -#define ws2812_T1 2 -#define ws2812_T2 5 -#define ws2812_T3 3 +#define ws2812_T1 3 +#define ws2812_T2 3 +#define ws2812_T3 4 static const uint16_t ws2812_program_instructions[] = { // .wrap_target - 0x6221, // 0: out x, 1 side 0 [2] - 0x1123, // 1: jmp !x, 3 side 1 [1] - 0x1400, // 2: jmp 0 side 1 [4] - 0xa442, // 3: nop side 0 [4] + 0x6321, // 0: out x, 1 side 0 [3] + 0x1223, // 1: jmp !x, 3 side 1 [2] + 0x1200, // 2: jmp 0 side 1 [2] + 0xa242, // 3: nop side 0 [2] // .wrap }; @@ -72,16 +72,16 @@ static inline void ws2812_program_init(PIO pio, uint sm, uint offset, uint pin, #define ws2812_parallel_wrap 3 #define ws2812_parallel_pio_version 0 -#define ws2812_parallel_T1 2 -#define ws2812_parallel_T2 5 -#define ws2812_parallel_T3 3 +#define ws2812_parallel_T1 3 +#define ws2812_parallel_T2 3 +#define ws2812_parallel_T3 4 static const uint16_t ws2812_parallel_program_instructions[] = { // .wrap_target 0x6020, // 0: out x, 32 - 0xa10b, // 1: mov pins, !null [1] - 0xa401, // 2: mov pins, x [4] - 0xa103, // 3: mov pins, null [1] + 0xa20b, // 1: mov pins, !null [2] + 0xa201, // 2: mov pins, x [2] + 0xa203, // 3: mov pins, null [2] // .wrap }; @@ -111,7 +111,6 @@ static inline void ws2812_parallel_program_init(PIO pio, uint sm, uint offset, u pio_sm_config c = ws2812_parallel_program_get_default_config(offset); sm_config_set_out_shift(&c, true, true, 32); sm_config_set_out_pins(&c, pin_base, pin_count); - sm_config_set_set_pins(&c, pin_base, pin_count); sm_config_set_fifo_join(&c, PIO_FIFO_JOIN_TX); int cycles_per_bit = ws2812_parallel_T1 + ws2812_parallel_T2 + ws2812_parallel_T3; float div = clock_get_hz(clk_sys) / (freq * cycles_per_bit);