Hi blynkers,
I am trying to do really small - size iot hardware with blynk. I am using esp8266 with I2C lcd display without problems.
For analog inputs i decided to combine this board with ADS1115. But i couln’t… Here is my code, SDA connected to 0, SCL connected to 2, ADS115 address pin connected to GND. Is that possible? Sould i switch to esp32 or something else?
#include <Wire.h>
#include <Adafruit_ADS1015.h>
Adafruit_ADS1115 ads(0x48);
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "6fb9a46b4cb84e34831d3b98b8912c78";
char ssid[] = "y-leptop";
char pass[] = "24092409";
void setup(void)
{
Blynk.begin(auth, ssid, pass);
Serial.begin(9600);
ads.begin();
}
void loop(void)
{
Blynk.run();
int16_t adc0; // we read from the ADC, we have a sixteen bit integer as a result
adc0 = ads.readADC_SingleEnded(0);
Serial.print(adc0);
Blynk.virtualWrite(V0, adc0);
delay(1000);
}