Skip to content

Commit 159254b

Browse files
Updates to Library - ready for arduino library push
Made final changes - ready for merge with Arduino Libraries
1 parent 11472d3 commit 159254b

File tree

4 files changed

+3
-110
lines changed

4 files changed

+3
-110
lines changed

examples/Example5_AngleCalculations/Example5_AngleCalculations.ino renamed to examples/Example3_AngleCalculations/Example3_AngleCalculations.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void setup()
1919
Serial.begin(115200);
2020

2121
// Begin example of the magnetic sensor code (and add whitespace for easy reading)
22-
Serial.println("TMAG5273 Example 5: Angle Calculations");
22+
Serial.println("TMAG5273 Example 3: Angle Calculations");
2323
Serial.println("");
2424
// If begin is successful (0), then start example
2525
if(sensor.begin(i2cAddress, Wire) == true)

examples/Example3_LowPower/Example3_LowPower.ino

Lines changed: 0 additions & 108 deletions
This file was deleted.

examples/Example6_IoT_Motor_Driver_Readings/Example6_IoT_Motor_Driver_Readings.ino renamed to examples/Example5_IoT_Motor_Driver_Readings/Example5_IoT_Motor_Driver_Readings.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void setup()
3434
Serial.begin(115200);
3535

3636
// Begin example of the magnetic sensor code
37-
Serial.println("TMAG5273 Example 6: Basic Readings with the IoT Motor Driver");
37+
Serial.println("TMAG5273 Example 5: Basic Readings with the IoT Motor Driver");
3838

3939
// ********* Driver config *********
4040
// power supply voltage [V]

src/SparkFun_TMAG5273_Arduino_Library.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ int8_t TMAG5273::setupWakeUpAndSleep()
215215
int8_t TMAG5273::readWakeUpAndSleepData(float *xVal, float *yVal, float *zVal, float *temperature)
216216
{
217217
uint8_t wakeupRegisterRead[8];
218+
// Read 4 bits of data
218219
readRegisters(TMAG5273_REG_T_MSB_RESULT, wakeupRegisterRead, 4);
219220

220221
// Need to get the values to themselves (bitwise operation)

0 commit comments

Comments
 (0)