| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /**
- * @file WS2812_ATY.h
- *
- * @param Project DEVICE_GENERAL_ATY_LIB
- *
- * @author ATY
- *
- * @copyright
- * - Copyright 2017 - 2026 MZ-ATY
- * - This code follows:
- * - MZ-ATY Various Contents Joint Statement -
- * <a href="https://mengze.top/MZ-ATY_VCJS">
- * https://mengze.top/MZ-ATY_VCJS</a>
- * - CC 4.0 BY-NC-SA -
- * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
- * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
- * - Your use will be deemed to have accepted the terms of this statement.
- *
- * @brief functions of WS2812 for C platform (Dev-style)
- *
- * @version
- * - 1_01_251112 > ATY
- * -# Refactor to Dev-style; remove legacy global interfaces
- ********************************************************************************
- */
- #ifndef __WS2812_ATY_H
- #define __WS2812_ATY_H
- #include "INCLUDE_ATY.h"
- struct WS2812_ATY_Dev
- {
- void (*sendBit)(uint8_t bit);
- void (*reset_us)(uint16_t us);
- uint8_t lock;
- };
- uint8_t WS2812_InitDev(struct WS2812_ATY_Dev* dev);
- void WS2812_SendColorDev(struct WS2812_ATY_Dev* dev, uint8_t R, uint8_t G, uint8_t B);
- void WS2812_SendBufferDev(struct WS2812_ATY_Dev* dev, const uint8_t* rgb, uint16_t count);
- #endif /* __WS2812_ATY_H */
- /******************************** End Of File *********************************/
|