belyalov / stm32-hal-libraries

Useful libraries for STM32 HAL
MIT License
85 stars 17 forks source link

Problem with PICO #10

Closed MyVanitar closed 2 years ago

MyVanitar commented 2 years ago

Hello,

I tried your SHTC3 library, it works well with STM32, but I decided to transfer the code to Raspberry PICO. So basically the only thing we need to replace is the HAL functions with Raspberry PICO C/C++ SDK functions: i2c_write_blocking and i2c_read_blocking

I have done this with other libraries and all work, but for some unknown weird reason, this library (SHTC3) does not work, I mean the sensor does not respond, no temp, no ID, no humidity, and all are returned 0. C code is C code for whatever hardware, but why does this happen?! do you have any idea?

MyVanitar commented 2 years ago

solved