First of all I don't know if I'm in the right part of the forum to make this request, please move my message if necessary.
I am looking to interface espeasy with an Infineon TLV493D type magnetic field sensor.
Below is an example of code given on the site http://www.esp32learning.com/code/tlv49 ... xample.php
As well as the ADAFRUIT doc: https://cdn-learn.adafruit.com/download ... ometer.pdf
Thank you in advance for telling me how I can add component to the ESPEASY interface.
Code: Select all
#include <Tlv493d.h>
// Tlv493d Opject
Tlv493d Tlv493dMagnetic3DSensor = Tlv493d();
void setup()
{
Serial.begin(9600);
while(!Serial);
Tlv493dMagnetic3DSensor.begin();
}
void loop() {
Tlv493dMagnetic3DSensor.updateData();
delay(100);
Serial.print("X = ");
Serial.print(Tlv493dMagnetic3DSensor.getX());
Serial.print(" mT; Y = ");
Serial.print(Tlv493dMagnetic3DSensor.getY());
Serial.print(" mT; Z = ");
Serial.print(Tlv493dMagnetic3DSensor.getZ());
Serial.println(" mT");
delay(500);
}