melexis / mlx90614-library

MLX90614 library functions
Apache License 2.0
9 stars 4 forks source link

question about software SMBus wait function #1

Closed mistak1992 closed 5 years ago

mistak1992 commented 5 years ago

my MCU is ESP32, run at frequence 80Mhz. develop with esp-idf. i read the PDF, and confuse with the wait function. i have modified the implement of function waitEE with vTaskDelay(ms/portTICK_PERIOD_MS); however, i have no idea how to modified the wait function. should i just leave it like this? MLX90614_SMBusFreqSet(160); For now, i got always -1(wrong ACK value) from function MLX90614_GetTa while everything work fine with Arduino running on atmega32 (use library Adafruit_MLX90614) i am looking forward for your reply and assistant.

mistak1992 commented 5 years ago

oh~there is an i2cTools in esp-idf. i have solve it~