[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 20:02:56 CET 2019


keestux commented on this pull request.



> + */
+static sht2x_t sht2x_devs[SHT2X_NUMOF];
+
+/**
+ * @brief   Reference the driver structs.
+ * @{
+ */
+extern const saul_driver_t sht2x_temperature_saul_driver;
+extern const saul_driver_t sht2x_relative_humidity_saul_driver;
+/** @} */
+
+/**
+ * @brief   Memory for the SAUL registry entries
+ */
+#define SENSORS_NUMOF 2
+static saul_reg_t saul_entries[SHT2X_NUMOF * SENSORS_NUMOF];

One for temp, one for humidity

-- 
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_r253600922
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190204/94ad452a/attachment-0001.html>


More information about the notifications mailing list