kopia lustrzana https://github.com/Xinyuan-LilyGO/TTGO-T-Display
				
				
				
			Fix wrong parameters
							rodzic
							
								
									a4d5c5c0eb
								
							
						
					
					
						commit
						5ccb17d15b
					
				|  | @ -209,8 +209,7 @@ void setup() | |||
|     button_init(); | ||||
| 
 | ||||
|     esp_adc_cal_characteristics_t adc_chars; | ||||
|     esp_adc_cal_value_t val_type = esp_adc_cal_characterize((adc_unit_t)ADC_UNIT_1, (adc_atten_t)ADC1_CHANNEL_6, (adc_bits_width_t)ADC_WIDTH_BIT_12, 1100, &adc_chars); | ||||
|     //Check type of calibration value used to characterize ADC
 | ||||
|     esp_adc_cal_value_t val_type = esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, 1100, &adc_chars);    //Check type of calibration value used to characterize ADC
 | ||||
|     if (val_type == ESP_ADC_CAL_VAL_EFUSE_VREF) { | ||||
|         Serial.printf("eFuse Vref:%u mV", adc_chars.vref); | ||||
|         vref = adc_chars.vref; | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 lewisxhe
						lewisxhe