-
Notifications
You must be signed in to change notification settings - Fork 7.6k
EEPROM does not compile (GravityTDS sensor) #1614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is a bug in the ESP32 EEPROM library. EEPROM.h does not As for the A1 error, that's because ESP32 does not have an A1 pin. That's a problem with the GravityTDS, not the ESP32 core. |
I still have that problem :( C:\Users\Asus\Documents\Arduino\libraries\GravityTDS-master\GravityTDS.cpp: In constructor 'GravityTDS::GravityTDS()': Compilation error: exit status 1 |
Hardware:
Board: ESP32 DevC Module
Core Installation/update date: ?11/jul/2017?
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
I'm trying to connect gravity TDS sensor on ADC14. The code does not compile. On Arduino UNO compiles fine.
Sketch:
#include <EEPROM.h>
#include "GravityTDS.h"
#define TdsSensorPin A14 // gpio 13
GravityTDS gravityTds;
float temperature = 25,tdsValue = 0;
void setup()
{
Serial.begin(115200);
gravityTds.setPin(TdsSensorPin);
gravityTds.setAref(5.0); //reference voltage on ADC, default 5.0V on Arduino UNO
gravityTds.setAdcRange(1024); //1024 for 10bit ADC;4096 for 12bit ADC
gravityTds.begin(); //initialization
}
void loop()
{
//temperature = readTemperature(); //add your temperature sensor and read it
gravityTds.setTemperature(temperature); // set the temperature and execute temperature compensation
gravityTds.update(); //sample and calculate
tdsValue = gravityTds.getTdsValue(); // then get the value
Serial.print(tdsValue,0);
Serial.println("ppm");
delay(1000);
}
Debug Messages:
The text was updated successfully, but these errors were encountered: