Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver based on ESP32 and RFM95W/SX1276 - sends data to a LoRaWAN Network (e.g. The Things Network)
MIT License
22
stars
9
forks
source link
Fix compiling errors with arduino-esp32 v3.0.X (ESP32AnalogRead) #87
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp: In member function 'uint32_t ESP32AnalogRead::readMiliVolts()':
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:182:35: error: 'ADC_WIDTH_12Bit' was not declared in this scope; did you mean 'ADC_WIDTH_MAX'?
182 | adc1_config_width(ADC_WIDTH_12Bit);
| ^~~~~~~~~~~~~~~
| ADC_WIDTH_MAX
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:182:17: error: 'adc1_config_width' was not declared in this scope
182 | adc1_config_width(ADC_WIDTH_12Bit);
| ^~~~~~~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:214:49: error: 'ADC_ATTEN_11db' was not declared in this scope; did you mean 'ADC_ATTEN_DB_6'?
214 | adc1_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~
| ADC_ATTEN_DB_6
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:214:17: error: 'adc1_config_channel_atten' was not declared in this scope
214 | adc1_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:254:49: error: 'ADC_ATTEN_11db' was not declared in this scope; did you mean 'ADC_ATTEN_DB_6'?
254 | adc2_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~
| ADC_ATTEN_DB_6
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:254:17: error: 'adc2_config_channel_atten' was not declared in this scope
254 | adc2_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:276:23: error: 'adc1_get_raw' was not declared in this scope
276 | raw = adc1_get_raw(adc1_channel);
| ^~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:280:44: error: 'ADC_WIDTH_12Bit' was not declared in this scope; did you mean 'ADC_WIDTH_MAX'?
280 | adc2_get_raw(adc2_channel, ADC_WIDTH_12Bit, &raw);
| ^~~~~~~~~~~~~~~
| ADC_WIDTH_MAX
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:280:17: error: 'adc2_get_raw' was not declared in this scope
280 | adc2_get_raw(adc2_channel, ADC_WIDTH_12Bit, &raw);
| ^~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp: In member function 'uint16_t ESP32AnalogRead::readRaw()':
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:486:35: error: 'ADC_WIDTH_12Bit' was not declared in this scope; did you mean 'ADC_WIDTH_MAX'?
486 | adc1_config_width(ADC_WIDTH_12Bit);
| ^~~~~~~~~~~~~~~
| ADC_WIDTH_MAX
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:486:17: error: 'adc1_config_width' was not declared in this scope
486 | adc1_config_width(ADC_WIDTH_12Bit);
| ^~~~~~~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:518:49: error: 'ADC_ATTEN_11db' was not declared in this scope; did you mean 'ADC_ATTEN_DB_6'?
518 | adc1_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~
| ADC_ATTEN_DB_6
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:518:17: error: 'adc1_config_channel_atten' was not declared in this scope
518 | adc1_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:558:49: error: 'ADC_ATTEN_11db' was not declared in this scope; did you mean 'ADC_ATTEN_DB_6'?
558 | adc2_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~
| ADC_ATTEN_DB_6
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:558:17: error: 'adc2_config_channel_atten' was not declared in this scope
558 | adc2_config_channel_atten(chan, ADC_ATTEN_11db);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:579:23: error: 'adc1_get_raw' was not declared in this scope
579 | raw = adc1_get_raw(adc1_channel);
| ^~~~~~~~~~~~
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:583:44: error: 'ADC_WIDTH_12Bit' was not declared in this scope; did you mean 'ADC_WIDTH_MAX'?
583 | adc2_get_raw(adc2_channel, ADC_WIDTH_12Bit, &raw);
| ^~~~~~~~~~~~~~~
| ADC_WIDTH_MAX
/home/mp/Arduino/libraries/ESP32AnalogRead/ESP32AnalogRead.cpp:583:17: error: 'adc2_get_raw' was not declared in this scope
583 | adc2_get_raw(adc2_channel, ADC_WIDTH_12Bit, &raw);
| ^~~~~~~~~~~~