Skip to content

Commit be60c8e

Browse files
committed
Use RX ram as well
1 parent 9537b1d commit be60c8e

File tree

1 file changed

+2
-1
lines changed
  • ports/espressif/common-hal/neopixel_write

1 file changed

+2
-1
lines changed

ports/espressif/common-hal/neopixel_write/__init__.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
7373
// give it all back once we're done.
7474
rmt_channel_handle_t channel;
7575
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;
76+
// 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;
7778
while (result == ESP_ERR_NOT_FOUND && config.mem_block_symbols > 0) {
7879
result = rmt_new_tx_channel(&config, &channel);
7980
config.mem_block_symbols -= SOC_RMT_MEM_WORDS_PER_CHANNEL;

0 commit comments

Comments
 (0)