It seem that ESP-IDF v5.x has deprecated the RMT framework used in v4.x
Please see: https://docs.espressif.com/projects/esp-idf/en/v5.0.2/esp32/migration-guides/release-5.x/peripherals.html#rmt-driver
Any plans to support the new framework v5.x?
Your NeoPixel method is much cleaner than the ESP-IDF supplied example!