For the time being I will try usleep.
RMT looks promising also. Thank you for your answers.
Search found 3 matches
- Mon Oct 29, 2018 5:07 am
- Forum: ESP-IDF
- Topic: nanosleep library issue
- Replies: 3
- Views: 5925
- Sat Oct 27, 2018 3:19 pm
- Forum: ESP-IDF
- Topic: nanosleep library issue
- Replies: 3
- Views: 5925
nanosleep library issue
Hello, I would like to use nanosleep() function but I got this error on compile: error: implicit declaration of function 'nanosleep' [-Werror=implicit-function-declaration] nanosleep(&tim , &tim2); ^ My code looks like this: #include "sdkconfig.h" #include <stdio.h> #include <time.h> #include "freer...
- Fri May 04, 2018 5:42 pm
- Forum: Hardware
- Topic: ESP32 I2C read issue with TCS34725
- Replies: 0
- Views: 3092
ESP32 I2C read issue with TCS34725
Hello, I want to read the device id from a TCS34725 but it returns the last byte written in the communiation. (In this case TCS34725_ID.) I am using this code: #include "esp_log.h" #include "driver/gpio.h" #include <driver/i2c.h> #include "freertos/FreeRTOS.h" #include <stdio.h> using namespace std;...