Added clang-format (#623)
* added .clang-format * added names to travis jobs removed deprecated travis option * check github action * added .gitignore
This commit is contained in:
1 parent
661ef9c55e
commit
10a9d00aaf
59 files changed
+2892
-3640
No files matched your search
+14
-14
@@ -31,26 +31,26 @@ extern void DS1820toMQTT();
|
||||
extern void pubOneWire_HADiscovery();
|
||||
/*----------------------------USER PARAMETERS-----------------------------*/
|
||||
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
|
||||
#define OW_TOPIC "/OneWiretoMQTT/ds1820"
|
||||
#define OW_MAX_SENSORS 8 // query max. sensors on 1-wire bus
|
||||
#define DS1820_ALWAYS true // if false only published current temperature if has changed from previous reading
|
||||
#define OW_TOPIC "/OneWiretoMQTT/ds1820"
|
||||
#define OW_MAX_SENSORS 8 // query max. sensors on 1-wire bus
|
||||
#define DS1820_ALWAYS true // if false only published current temperature if has changed from previous reading
|
||||
#define DS1820_INTERVAL_SEC 60 // time between DS1820 readings (seconds)
|
||||
#define DS1820_RESOLUTION 10 // conversion times: 9 bit (93.75 ms), 10 bit (187.5 ms), 11 bit (375 ms), 12 bit (750 ms)
|
||||
#define DS1820_RESOLUTION 10 // conversion times: 9 bit (93.75 ms), 10 bit (187.5 ms), 11 bit (375 ms), 12 bit (750 ms)
|
||||
#ifndef DS1820_FAHRENHEIT
|
||||
#define DS1820_FAHRENHEIT false // defaults to Celcius
|
||||
# define DS1820_FAHRENHEIT false // defaults to Celcius
|
||||
#endif
|
||||
#define DS1820_DETAILS true // publish extented info for each sensor (resolution, address, type)
|
||||
#define DS1820_CONV_TIME 2000 // trigger conversion before requesting temperature readings (ms)
|
||||
#define DS1820_DETAILS true // publish extented info for each sensor (resolution, address, type)
|
||||
#define DS1820_CONV_TIME 2000 // trigger conversion before requesting temperature readings (ms)
|
||||
/*-------------------PIN DEFINITIONS----------------------*/
|
||||
|
||||
#ifndef DS1820_OWBUS_PIN
|
||||
#if defined(ESP8266)
|
||||
#define DS1820_OWBUS_PIN 2
|
||||
#elif defined(ESP32)
|
||||
#define DS1820_OWBUS_PIN 2
|
||||
#else
|
||||
#define DS1820_OWBUS_PIN 2
|
||||
#endif
|
||||
# if defined(ESP8266)
|
||||
# define DS1820_OWBUS_PIN 2
|
||||
# elif defined(ESP32)
|
||||
# define DS1820_OWBUS_PIN 2
|
||||
# else
|
||||
# define DS1820_OWBUS_PIN 2
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user