[riot-notifications] [RIOT-OS/RIOT] drivers: add support for SHT2x (I2C temp and humidity sensor) (#10750)

Kees Bakker notifications at github.com
Mon Feb 4 19:46:42 CET 2019


keestux commented on this pull request.



> +
+/**
+ * @brief       The number of retries when doing a polled measurement
+ */
+#define MAX_RETRIES         20
+
+/**
+ * @brief       A few helper macros
+ */
+#define BUS                 (dev->params.i2c_dev)
+#define ADDR                (dev->params.i2c_addr)
+#define MODE                (dev->params.measure_mode)
+#define CRC                 (dev->params.is_crc_enabled)
+
+typedef enum {
+    eTempHoldCmd        = 0xE3,     /**< trigger temp measurement, hold master */

These names were copied from the supplier's example code. But OK, I'll change it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10750#discussion_r253594433
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190204/b1aef68d/attachment.html>


More information about the notifications mailing list