esp32/esp32_rmt: Fix RMT looping in newer IDF versions.
esp32/esp32_rmt: Fix RMT looping in newer IDF versions.

When looping, now disable the TX interrupt after calling rmt_write_items()
function to handle change in IDF behaviour (since v4.1).  Also check length
of pulses to ensure it fits hardware limit.

Fixes issue #7403.

adafruit/circuitpython,bvernoux/micropython,adafruit/circuitpython,adafruit/circuitpython,bvernoux/micropython,adafruit/circuitpython,adafruit/circuitpython,bvernoux/micropython,adafruit/circuitpython,bvernoux/micropython,bvernoux/micropython