main.c 417 B

12345678910111213141516171819202122232425
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include "freertos/FreeRTOS.h"
  5. #include "freertos/task.h"
  6. #include "freertos/semphr.h"
  7. #include "freertos/event_groups.h"
  8. #include "esp_system.h"
  9. #include "esp_log.h"
  10. #include "esp_err.h"
  11. #include "max30102.h"
  12. void app_main(void)
  13. {
  14. max30102_init();
  15. while (1)
  16. {
  17. get_temp();
  18. vTaskDelay(10000 / portTICK_RATE_MS);
  19. }
  20. }