set up to autonomously sample with one sensor

Fork of SI1142 by Dave Cohen

Files at this revision

API Documentation at this revision

Comitter:
mfillinois
Date:
Thu Jun 12 20:56:59 2014 +0000
Parent:
10:a89555c4f62a
Commit message:
Experimenting with sample rate 06/12/2014

Changed in this revision

SI1143.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SI1143.cpp	Wed Jun 04 23:12:42 2014 +0000
+++ b/SI1143.cpp	Thu Jun 12 20:56:59 2014 +0000
@@ -101,12 +101,12 @@
     
     
     write_reg(INT_CFG,0x01); // Configure Interrupts 
-    write_reg(IRQ_ENABLE,0x04); // Enable PS1 (0x04) Enable PS1 & PS2 (0x0C)
+    write_reg(IRQ_ENABLE,0x0C); // Enable PS1 (0x04) Enable PS1 & PS2 (0x0C)
     write_reg(IRQ_MODE1,0);
     write_reg(IRQ_MODE2,0);
     
-    //write_reg(MEAS_RATE,0x94); //0x84 - wakes up every 10 ms
-    //write_reg(PS_RATE,0x08); //0x8 - wakes up every time measurement clock wakes up
+    write_reg(MEAS_RATE,0xFF); //0x84 - wakes up every 10 ms
+    write_reg(PS_RATE,0x08); //0x8 - wakes up every time measurement clock wakes up
     
     //write_reg(PS_ADC_MISC,0x24);
     //write_reg(PS1_ADCMUX,0x03);