Add extern C declaration

This commit is contained in:
Brian Schwind 2016-10-11 22:52:11 +09:00
parent 6449f243fc
commit 6dea7abfc0

View file

@ -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__