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
|
@ -17,6 +17,10 @@
|
|||
// Type of sensor to use
|
||||
#define DHT_TYPE DHT22
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Read data from sensor on specified pin.
|
||||
*
|
||||
|
@ -35,4 +39,8 @@ bool dht_read_data(uint8_t pin, int16_t *humidity, int16_t *temperature);
|
|||
*/
|
||||
bool dht_read_float_data(uint8_t pin, float *humidity, float *temperature);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __DHT_H__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue