We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9537b1d commit be60c8eCopy full SHA for be60c8e
1 file changed
ports/espressif/common-hal/neopixel_write/__init__.c
@@ -73,7 +73,8 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
73
// give it all back once we're done.
74
rmt_channel_handle_t channel;
75
esp_err_t result = ESP_ERR_NOT_FOUND;
76
- config.mem_block_symbols = SOC_RMT_MEM_WORDS_PER_CHANNEL * SOC_RMT_TX_CANDIDATES_PER_GROUP;
+ // If no other channels are in use, we can use all of the RMT RAM including the RX channels.
77
+ config.mem_block_symbols = SOC_RMT_MEM_WORDS_PER_CHANNEL * SOC_RMT_CHANNELS_PER_GROUP;
78
while (result == ESP_ERR_NOT_FOUND && config.mem_block_symbols > 0) {
79
result = rmt_new_tx_channel(&config, &channel);
80
config.mem_block_symbols -= SOC_RMT_MEM_WORDS_PER_CHANNEL;
0 commit comments