diff --git a/ws2812.h b/ws2812.h index 9f1d97d..5f3c195 100644 --- a/ws2812.h +++ b/ws2812.h @@ -42,6 +42,10 @@ typedef enum { /* --- PUBLIC FUNCTIONS ----------------------------------------------------- */ +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Initialize the driver * @@ -70,6 +74,10 @@ void ws2812_init(void); */ ws2812_err_t ws2812_write_led(uint32_t led_number, uint8_t r, uint8_t g, uint8_t b); +#ifdef __cplusplus +} +#endif + /** @} defgroup WS2812 */ #endif //ifndef WS2812_H_