); if (adc1_config_channel_atten(ADC1_GPIO35_CHANNEL, 4) != 0) printf("An error has occured!"); gpio_set_direction(JS1_BT, GPIO_MODE_INPUT); gpio_set_pull_mode(JS1_BT, GPIO_PULLDOWN_ENABLE); Point2D lastPoint; while (true) { if (gpio_get_level(JS1_BT) == 1) printf("...
extern "C" void app_main(void) { ESP_LOGE("ADC", "Boot"); vTaskDelay(20000/portTICK_PERIOD_MS); ESP_LOGE("ADC", "before ADC"); adc1_config_width(ADC_WIDTH_BIT_12); adc1_config_channel_atten(ADC1_CHANNEL_0, ADC_ATTEN_DB_11); adc1_get_raw(ADC1_CHANNEL_0); <---this is...
ADC_ATTEN_2_5db 0,306 650 0,606 1555 ADC_ATTEN_6db 0,306 400 0,606 1050 ADC_ATTEN_11db 0,306 170 0,606 542 3,301 4092 Code: Select all adc1_config_width(ADC_WIDTH_12Bit); adc1_config_channel_atten(ADC1_CHANNEL_5,ADC_ATTEN_0db); adc1_get_voltage(ADC1_CHANNEL_5); jum...
adc_oneshot_chan_cfg_t config = { .atten = chan_config->atten, .bitwidth = chan_config->bitwidth, }; return (adc_oneshot_config_channel(s_adc1_handle, channel, &config)); #endif /* IS_ULP_COCPU */ } esp_err_t lp_core_lp_adc_read_channel_raw(adc_unit_t unit_id, adc_chan...
@@ -4356,6 +4356,45 @@ static void rt2800_config_channel(struct rt2800_iq_calibrate(rt2x00dev, rf->channel); @@ -4360,6 +4360,45 @@ static void rt2800_config_channel(struct rt2800_iq_calibrate(rt2x00dev, rf->channel); } + if (rt2x00_rt(rt2x00dev, RT6352)) { @@ -76,...
#define ADC_CHANNEL ADC_CHANNEL_2 // MAIN void app_main(void) { // ADC SETUP if (adc1_config_width(ADC_WIDTH_BIT_12) != ESP_OK) { ESP_LOGE (TAG, "WIDTH ERROR"); } if (adc1_config_channel_atten(ADC_CHANNEL, ADC_ATTEN_DB_12)) { ESP_LOGE (TAG, "ATTEN ERROR"); } int ...
#define ADC_CHANNEL ADC_CHANNEL_2 // MAIN void app_main(void) { // ADC SETUP if (adc1_config_width(ADC_WIDTH_BIT_12) != ESP_OK) { ESP_LOGE (TAG, "WIDTH ERROR"); } if (adc1_config_channel_atten(ADC_CHANNEL, ADC_ATTEN_DB_12)) { ESP_LOGE (TAG, "ATTEN ERROR"); } int ...
#define ADC_CHANNEL ADC_CHANNEL_2 // MAIN void app_main(void) { // ADC SETUP if (adc1_config_width(ADC_WIDTH_BIT_12) != ESP_OK) { ESP_LOGE (TAG, "WIDTH ERROR"); } if (adc1_config_channel_atten(ADC_CHANNEL, ADC_ATTEN_DB_12)) { ESP_LOGE (TAG, "ATTEN ERROR"); } int ...
#define ADC_CHANNEL ADC_CHANNEL_2 // MAIN void app_main(void) { // ADC SETUP if (adc1_config_width(ADC_WIDTH_BIT_12) != ESP_OK) { ESP_LOGE (TAG, "WIDTH ERROR"); } if (adc1_config_channel_atten(ADC_CHANNEL, ADC_ATTEN_DB_12)) { ESP_LOGE (TAG, "ATTEN ERROR"); } int ...
#define ADC_CHANNEL ADC_CHANNEL_2 // MAIN void app_main(void) { // ADC SETUP if (adc1_config_width(ADC_WIDTH_BIT_12) != ESP_OK) { ESP_LOGE (TAG, "WIDTH ERROR"); } if (adc1_config_channel_atten(ADC_CHANNEL, ADC_ATTEN_DB_12)) { ESP_LOGE (TAG, "ATTEN ERROR"); } int ...