#ifndef SPICLASS_H #define SPICLASS_H #include #include "ws2812b.h" /** */ class SpiClass { static constexpr unsigned PADDING = 10 * sizeof (Color); static constexpr unsigned LEDS_LEN = NUMLEDS * sizeof (Color); static constexpr unsigned FULL_LEN = PADDING + LEDS_LEN; OneWay * driver; uint8_t * const ptrl; uint8_t * const ptrh; uint8_t buffer [FULL_LEN]; public: explicit SpiClass (OneWay & base) noexcept; void Init (); void drq (); protected: }; #endif // SPICLASS_H