support for c3 and s3 channel restrictions

This commit is contained in:
Wizmo2
2023-09-25 19:32:13 -04:00
parent 53fa83b2dd
commit 60bd591bf8
6 changed files with 11 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ void setup_rmt_data_buffer(struct led_state new_state);
void ws2812_control_init(void)
{
rmt_channel = rmt_system_base_channel++;
rmt_channel = RMT_NEXT_TX_CHANNEL;
rmt_config_t config;
config.rmt_mode = RMT_MODE_TX;
config.channel = rmt_channel;