/** * @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 - * * https://mengze.top/MZ-ATY_VCJS * - CC 4.0 BY-NC-SA - * * https://creativecommons.org/licenses/by-nc-sa/4.0/ * - 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 *********************************/