Add extern C declaration
This commit is contained in:
parent
6449f243fc
commit
6dea7abfc0
1 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// I2C Addresses
|
||||
typedef enum
|
||||
{
|
||||
|
@ -45,4 +49,8 @@ void tsl2561_set_integration_time(tsl2561_t *device, tsl2561_integration_time_t
|
|||
void tsl2561_set_gain(tsl2561_t *device, tsl2561_gain_t gain);
|
||||
bool tsl2561_read_lux(tsl2561_t *device, uint32_t *lux);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __TSL2561_H__
|
||||
|
|
Loading…
Reference in a new issue