Hello I realy love use ESPHOME.
I have some other question to make i2c custom components.
I have no idea about coding, but esphome make it easy enough to challenge make something
I have i2c device which has a fuction to sensing Radon,
I can make Test Custom Sensor but Adafruit Library only
It has no Adafruit library, so I don’t know How to Integrate.
so I have no idea, How to Integrate my ESPHOME ?
void setup() { //Arduino Initialize
Serial.begin(9600);
Wire.begin();
Serial.println("Gamma Sensor Sensing Start");
//Read Firmware Version
Gamma_Mod_Read(0xB4); //Reset before operating the sensor
Gamma_Mod_Read(0xA0);
Serial.println("================================================"); }
void loop() {
delay(1000);
Gamma_Mod_Read(0xB0); // Read Status
Gamma_Mod_Read(0xB1); // Read Measuring Time
Gamma_Mod_Read(0xB2); // Read Measuring Value (10min avg.)
Gamma_Mod_Read(0xB3); // Read Measuring Value (1min avg.)
Serial.println("================================================");
sec++; }
void Gamma_Mod_Read(int cmd){
/* Begin Write Sequence */
Wire.beginTransmission(addr);
Wire.write(cmd);
Wire.endTransmission();
/* End Write Sequence */
delay(10);
/* Begin Read Sequence */
Wire.requestFrom(addr, 2);
byte i = 0;
while(Wire.available())
{
buffer[i] = Wire.read();
i++;
}
/* End Read Sequence */
/* View Results */
Print_Result(cmd);
}
If someone can make i2c custom ESPHOME sentence without adafruit Library
please let me know How to setup ESP Yaml and Custom.h file
Thanks to Everyone for your Knowledge and Experience.