Browse Source

Corrected ESP::analog_read() attenuation

v0.9.4
Guy Turcotte 3 years ago
parent
commit
7004c73b29
  1. 4
      README.md
  2. 2
      include/services/esp.hpp

4
README.md

@ -1,4 +1,6 @@
# ESP-IDF-InkPlate Library Version 0.9.1
# ESP-IDF-InkPlate Library Version 0.9.2
(January 16, 2021)
A porting effort to the ESP-IDF framework for the e-Radionica InkPlate software that can be find [here](https://github.com/e-radionicacom/Inkplate-Arduino-library).

2
include/services/esp.hpp

@ -55,7 +55,7 @@ class ESP
static int16_t analog_read(adc1_channel_t channel) {
adc1_config_width(ADC_WIDTH_BIT_12);
adc1_config_channel_atten(channel, ADC_ATTEN_MAX);
adc1_config_channel_atten(channel, ADC_ATTEN_11db);
return adc1_get_raw(channel);
}

Loading…
Cancel
Save