# cs1237_esp-idf **Repository Path**: ArsSama/cs1237_esp-idf ## Basic Information - **Project Name**: cs1237_esp-idf - **Description**: 使用ESP32S3驱动 CS1237 24bit ADC模块 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 0 - **Created**: 2022-12-24 - **Last Updated**: 2025-05-22 ## Categories & Tags **Categories**: hardware **Tags**: ADC, CS1237, IDF ## README | Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-S2 | ESP32-S3 | | ----------------- | ----- | -------- | -------- | -------- | -------- | # cs1237 ADC cs1237ADC模块 ## Start Starts a FreeRTOS task to print " ```c I (177030) main: cs1237_readResult: 2533 I (177230) main: cs1237_readResult: 3894 I (177430) main: cs1237_readResult: 5225 . . . " ``` ## How to use cs1237 ADC ```c _cs1237 cs1237_one; static void cs1237_adc_task(void *arg) { cs1237_one.clk = 1;/*CLK IO*/ cs1237_one.dio = 2;/*OUT IO*/ cs1237_config(&cs1237_one, SPEED_40Hz, CH_SEL_A, PGA_1X, REF_OUT_ON);//Init cs1237_one ESP_LOGI(TAG, "cs1237 init ok"); while (1) { ESP_LOGI(TAG, "cs1237_readResult: %d \r\n", cs1237_read(&cs1237_one)); vTaskDelay(pdMS_TO_TICKS(200)); } } ```