From 360e875c7fe05a7138069475a3717d7b0c88b02b Mon Sep 17 00:00:00 2001 From: neunerse Date: Thu, 8 Apr 2021 16:49:57 +0200 Subject: [PATCH] Added commented lines to the examples Added 3 lines for powering up the sensor on the TLV493D-A1B6 MS2GO Evalkit. --- examples/Cartesian/Cartesian.ino | 6 ++++++ examples/CartesianFast/CartesianFast.ino | 6 ++++++ examples/SphericalFast/SphericalFast.ino | 6 ++++++ examples/spherical/spherical.ino | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/examples/Cartesian/Cartesian.ino b/examples/Cartesian/Cartesian.ino index 64716c1..d318b70 100644 --- a/examples/Cartesian/Cartesian.ino +++ b/examples/Cartesian/Cartesian.ino @@ -6,6 +6,12 @@ Tlv493d Tlv493dMagnetic3DSensor = Tlv493d(); void setup() { Serial.begin(9600); while(!Serial); + + //For the Evalkit "TLV493D-A1B6 MS2GO" uncommend following 3 lines: + //pinMode(LED2, OUTPUT); //Sensor-VDD as output + //digitalWrite(LED2, HIGH); //Power on the sensor + //delay(50); + Tlv493dMagnetic3DSensor.begin(); } diff --git a/examples/CartesianFast/CartesianFast.ino b/examples/CartesianFast/CartesianFast.ino index 08e0346..60f3955 100644 --- a/examples/CartesianFast/CartesianFast.ino +++ b/examples/CartesianFast/CartesianFast.ino @@ -6,6 +6,12 @@ Tlv493d Tlv493dMagnetic3DSensor = Tlv493d(); void setup() { Serial.begin(9600); while(!Serial); + + //For the Evalkit "TLV493D-A1B6 MS2GO" uncommend following 3 lines: + //pinMode(LED2, OUTPUT); //Sensor-VDD as output + //digitalWrite(LED2, HIGH); //Power on the sensor + //delay(50); + Tlv493dMagnetic3DSensor.begin(); Tlv493dMagnetic3DSensor.setAccessMode(Tlv493dMagnetic3DSensor.MASTERCONTROLLEDMODE); Tlv493dMagnetic3DSensor.disableTemp(); diff --git a/examples/SphericalFast/SphericalFast.ino b/examples/SphericalFast/SphericalFast.ino index 8db6104..0613ebc 100644 --- a/examples/SphericalFast/SphericalFast.ino +++ b/examples/SphericalFast/SphericalFast.ino @@ -6,6 +6,12 @@ Tlv493d Tlv493dMagnetic3DSensor = Tlv493d(); void setup() { Serial.begin(9600); while(!Serial); + + //For the Evalkit "TLV493D-A1B6 MS2GO" uncommend following 3 lines: + //pinMode(LED2, OUTPUT); //Sensor-VDD as output + //digitalWrite(LED2, HIGH); //Power on the sensor + //delay(50); + Tlv493dMagnetic3DSensor.begin(); Tlv493dMagnetic3DSensor.setAccessMode(Tlv493dMagnetic3DSensor.MASTERCONTROLLEDMODE); Tlv493dMagnetic3DSensor.disableTemp(); diff --git a/examples/spherical/spherical.ino b/examples/spherical/spherical.ino index c7e9e53..97deb94 100644 --- a/examples/spherical/spherical.ino +++ b/examples/spherical/spherical.ino @@ -6,6 +6,12 @@ Tlv493d Tlv493dMagnetic3DSensor = Tlv493d(); void setup() { Serial.begin(9600); while(!Serial); + + //For the Evalkit "TLV493D-A1B6 MS2GO" uncommend following 3 lines: + //pinMode(LED2, OUTPUT); //Sensor-VDD as output + //digitalWrite(LED2, HIGH); //Power on the sensor + //delay(50); + Tlv493dMagnetic3DSensor.begin(); }