Git Product home page Git Product logo

stm32-sht2x's People

Contributors

eepj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

stm32-sht2x's Issues

Issue with the sprintf(buffer) using the example.c

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

Problem with code

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.