Shouldn't be too hard, just I guess no one has that particular sensor.
Send me one :)
Please add link to product datasheet
Looks like a straightforward I2C device, creating a module for it shouldn't be particularly hard.
Are you able to interface at this time? (no?) e.g. As the link is to the supplier page, has the purchase been made, or are we still speculating at this point?
If yes, what are the results of just trying the snippet for the common temp/humid sensor:
If no, use the source and modify as needed, as @AkosLukacs points out. It appears that @DrAzzy and I agree, after I viewed that source.
DHT11 is not the best starting point, because the HDC1080 has I2C interface, but the DHT11 has a one-wire interface.
One sensor listed on the I2C page would be a better starting point.
Ahhh, . . . hadn't realized the interface difference. Thanks for that tidbit, @AkosLukacs
Maybe the BMP280 Environment sensor code snippet would better assist here:
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem