- ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid arguments - ESP_ERR_NO_MEM: No memory - ESP_ERR_NOT_FOUND: The ADC peripheral to be claimed is already in use - ESP_FAIL: Clock source isn't initialised correctly
Notes
This API is thread-safe. For more details, see ADC programming guide
Examples
adc_oneshot_new_unit() is referenced by 4 libraries and example projects: