feat: added PicoW_Sensor code template
Credits to @ext-erich.styger that provided the template
This commit is contained in:
committed by
Sylvan Arnold
parent
b2e9eab44e
commit
6cd510e749
27
TSM_PicoW_Sensor/McuLib/config/McuSHT31config.h
Normal file
27
TSM_PicoW_Sensor/McuLib/config/McuSHT31config.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* Copyright (c) 2019, Erich Styger
|
||||
* All rights reserved.
|
||||
* \file
|
||||
* \brief Configuration header file for McuSHT31 sensor from Sensirion.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef MCUSHT31_CONFIG_H_
|
||||
#define MCUSHT31_CONFIG_H_
|
||||
|
||||
#ifndef MCUSHT31_CONFIG_PARSE_COMMAND_ENABLED
|
||||
#define MCUSHT31_CONFIG_PARSE_COMMAND_ENABLED (1)
|
||||
#endif
|
||||
|
||||
#ifndef McuSHT31_CONFIG_I2C_ADDR
|
||||
#define McuSHT31_CONFIG_I2C_ADDR (0x44) /* default I2C address with ADDR pin pulled LOW (default on Adafruit board) */
|
||||
//#define McuSHT31_I2C_ADDR (0x45) /* I2C address with ADDR pin pulled HIGH: pull ADR pin to VIN */
|
||||
#endif
|
||||
|
||||
#ifndef McuSHT31_CONFIG_READ_WAIT_MS
|
||||
#define McuSHT31_CONFIG_READ_WAIT_MS (25)
|
||||
/*!< SHT31 needs a wait time for sampling the data */
|
||||
#endif
|
||||
|
||||
#endif /* MCUSHT31_CONFIG_H_ */
|
||||
Reference in New Issue
Block a user