eepj / stm32-sht2x Goto Github PK
View Code? Open in Web Editor NEWAn STM32 HAL library for the SHT2x temperature/humidity sensor series.
License: MIT License
An STM32 HAL library for the SHT2x temperature/humidity sensor series.
License: MIT License
Hello,
first of all, thank you very much for your code, it works very fine, but...
trying your example.c, things goes very good if I comment out this function and read the values of cel, fah, kel, rh, using the Atollic TrueStudio debugger window.
If I uncomment the function, to prepare the messages to put on a terminal:
sprintf(buffer,
"%d.%dºC, %d.%dºF, %d.%d K, %d.%d%% RH\n",
SHT2x_Pre(cel), SHT2x_Post(cel, 1),
SHT2x_Pre(fah), SHT2x_Post(fah, 1),
SHT2x_Pre(kel), SHT2x_Post(kel, 1),
SHT2x_Pre(rh), SHT2x_Post(rh, 1));
The following errors are found:
undefined reference to "SHT2x_Post"
undefined reference to "SHT2x_Pre"
Where are these functions and what they do?
Thank you very much
Antoniomilano
Hey, can you help me calibrating the fx290-100A-0010-L for stm32
Hello and thanks for sharing code
I use the code in Keil and I add the library. when I compile the code, I have 8 errors with these statements
uint8_t cmd = (hold)?SHT2x_READ_RH_HOLD:SHT2x_READ_RH_NOHOLD;
and the error is :
..\Inc\sht2x_for_stm32_hal.c(63): error: #65: expected a ";"
What is the problem?
Do I need to make any changes in code?
Thank you
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.