ESP32, TIMER, esp_timer
- us 단위로 timer를 설정합니다.
- esp_timer_get_time() 함수를 부팅 이후 동작 시간을 확인할 수 있습니다.
- esp_sleep_enable_timer_wakeup(), esp_light_sleep_start() 함수를 통해 조금 더 정확하게 delay를 줄 수 있습니다.
0. 참고 사이트
- esp-idf\examples\system\esp_timer
- https://github.com/espressif/esp-idf/tree/master/examples/system/esp_timer
- https://esp-idf.readthedocs.io/en/latest/api-reference/peripherals/timer.html
1. 모듈
2. 보드 연결
3. 소스 설명
- esp-idf\components\esp32\include\esp_timer.h
- esp-idf\components\esp32\include\esp_sleep.h
4. 소스
https://github.com/sglee0223/esp32/tree/master/esp_timer
5. 결과 확인
I (0) cpu_start: App cpu up. |
'ESP32' 카테고리의 다른 글
ESP32, NVS, nvs_rw_value (0) | 2018.08.23 |
---|---|
ESP32, NVS 이해하기 (0) | 2018.08.22 |
ESP32, GPIO, gpio_intr (0) | 2018.08.22 |
ESP32, Bluetooth, ble_spp_server, ble_spp_client (0) | 2018.08.21 |
ESP32, Wi-Fi, smart_config (0) | 2018.08.21 |