set up to autonomously sample with one sensor
Fork of SI1142 by
Diff: SI1143.cpp
- Revision:
- 11:f90ed8f6f38b
- Parent:
- 10:a89555c4f62a
--- 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);