ESP32 Native version of Blinky, featureful controller code for WS2811/WS2812/NeoPixels
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
200B

  1. #include <sys/time.h>
  2. #include "utils.hpp"
  3. int64_t time_us() {
  4. struct timeval tv_now;
  5. gettimeofday(&tv_now, NULL);
  6. return (int64_t)tv_now.tv_sec * 1000000L + (int64_t)tv_now.tv_usec;
  7. }