Make headers in extras more cpp friendly
This commit is contained in:
parent
2994a566a6
commit
57cb9b925c
12 changed files with 130 additions and 29 deletions
|
@ -35,6 +35,10 @@
|
|||
#include "espressif/esp_common.h" // sdk_os_delay_us
|
||||
#include "esp/gpio.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Struct for easy manipulation of RGB colors.
|
||||
*
|
||||
|
@ -204,5 +208,8 @@ void ws2812_seq_end(void)
|
|||
sdk_os_delay_us(50); // display the loaded colors
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* WS2812_DRV_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue