set up to autonomously sample with one sensor
Fork of SI1142 by
Diff: SI1143.cpp
- Revision:
- 4:af8f820733e0
- Parent:
- 3:cb3e8160f18e
- Child:
- 5:3fadc61598bc
--- a/SI1143.cpp Thu Oct 17 22:03:54 2013 +0000 +++ b/SI1143.cpp Thu Oct 17 23:23:33 2013 +0000 @@ -39,6 +39,11 @@ //3.4MHz, as specified by the datasheet, but DO NOT USE. //i2c_->frequency(3400000); + restart(); +} + +void SI1143::restart() +{ command(RESET); wait_ms(30); @@ -170,3 +175,4 @@ //return PS1; } +