metalphreak / esp8266_htu21d Goto Github PK
View Code? Open in Web Editor NEWESP8266 Driver for Measurement Specialties HTU21D i2c Temperature and Relative Humidity Sensor
ESP8266 Driver for Measurement Specialties HTU21D i2c Temperature and Relative Humidity Sensor
I'm not having any luck getting this to work. I'm using it with a Wemos D1, which incorporates an ESP-12.
I've tried it virtually unmodified (I did include some uart support to change the baud rate to 115200), using GPIO2 and 0 for SDA and SCK, and the NONOS SDK 2.1. I consistent get "Error" for every read attempt.
I've also tried GPIO4 and 5, which seems to be the default for the ESP-12. The Adafruit drive under Arduino build env works fine on 4 and 5, by the way, so I'm confident in the hookup configuration.
I know it's been a while since you contributed this, but I'm hoping you might have some thoughts on what's going on.
This is how I configured for GPIO 4 and 5 (in i2c.h):
#define I2C_SDA_MUX PERIPHS_IO_MUX_GPIO4_U
#define I2C_SDA_FUNC FUNC_GPIO4
#define I2C_SDA_PIN 4
#define I2C_SCK_MUX PERIPHS_IO_MUX_GPIO5_U
#define I2C_SCK_FUNC FUNC_GPIO5
#define I2C_SCK_PIN 5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.