Skip to content

Commit 068eb0b

Browse files
authored
Update KX022.js
1 parent c83d105 commit 068eb0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

KX022.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function LIS2MDL(options,r,w) {
3131
//this.w(REG.CNTL1, 0xD0); //OLD
3232
this.w(REG.LP_CNTL, 0x0B); //NEW
3333
this.w(REG.CNTL1, 0x90); //NEW config 10010000
34+
print("config 1");
3435
// low pass filter, ODR/4
3536
//this.w(REG.CFG_B, 0x01);
3637
// data ready irq, block data read
@@ -42,6 +43,7 @@ LIS2MDL.prototype.init = function() {
4243
this.w(REG.CNTL1, 0x10); //config 0 0 0 1 0 0 0 0 NEW
4344
this.w(REG.LP_CNTL, 0x0B); //NEW
4445
this.w(REG.CNTL1, 0x90); //NEW config 10010000
46+
print("config 2");
4547
};
4648

4749
//tt

0 commit comments

Comments
 (0)