ESP32 Native version of Blinky, featureful controller code for WS2811/WS2812/NeoPixels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
333B

  1. #pragma once
  2. #include <driver/rmt.h>
  3. #include "leds.hpp"
  4. class RMT_LEDs : public LEDStrip {
  5. public:
  6. RMT_LEDs(gpio_num_t gpio, int length = 0);
  7. ~RMT_LEDs();
  8. void show();
  9. void length_changing(int len) { configure(len); }
  10. private:
  11. gpio_num_t gpio;
  12. rmt_channel_t channel;
  13. void configure(int length);
  14. };