Skip to content

Commit 5be8ada

Browse files
committed
Sets default back to KX132 instead of KX134 in example one
1 parent b88040d commit 5be8ada

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/example1_basic_readings/example1_basic_readings.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
#include <Wire.h>
3737
#include "SparkFun_KX13X.h"
3838

39-
//SparkFun_KX132 kxAccel;
40-
SparkFun_KX134 kxAccel; // For the KX134, uncomment this and comment line above
39+
SparkFun_KX132 kxAccel;
40+
//SparkFun_KX134 kxAccel; // For the KX134, uncomment this and comment line above
4141

4242
outputData myData; // Struct for the accelerometer's data
4343

@@ -72,8 +72,8 @@ void setup()
7272
// "...regs.h" file which specify which can be changed when.
7373
kxAccel.enableAccel(false);
7474

75-
//kxAccel.setRange(SFE_KX132_RANGE16G); // 16g Range
76-
kxAccel.setRange(SFE_KX134_RANGE16G); // 16g for the KX134
75+
kxAccel.setRange(SFE_KX132_RANGE16G); // 16g Range
76+
//kxAccel.setRange(SFE_KX134_RANGE16G); // 16g for the KX134
7777

7878
kxAccel.enableDataEngine(); // Enables the bit that indicates data is ready.
7979
// kxAccel.setOutputDataRate(); // Default is 50Hz

0 commit comments

Comments
 (0)