Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: test_MAX44008 testSensor
Revision 1:45b23a5fff8e, committed 2015-12-22
- Comitter:
- Rhyme
- Date:
- Tue Dec 22 06:02:58 2015 +0000
- Parent:
- 0:7d913e68a6d7
- Child:
- 2:e4631b2273f8
- Commit message:
- commit before publishing; basic functions have been tested, but not all the functions have not.
Changed in this revision
| MAX44008.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MAX44008.cpp Tue Dec 22 05:44:07 2015 +0000
+++ b/MAX44008.cpp Tue Dec 22 06:02:58 2015 +0000
@@ -43,6 +43,7 @@
#define REG_TRIM_GAIN_BLU 0x20
#define REG_TRIM_GAIN_IR 0x21
+#if 0
/* Operation Mode */
#define MODE_CLEAR 0x00
#define MODE_CLEAR_IR 0x01
@@ -53,6 +54,7 @@
#define AMB_INT_GREEN 0x01
#define AMB_INT_IR 0x02
#define AMB_INT_TEMP 0x03
+#endif
MAX44008::MAX44008(PinName sda, PinName scl, int addr) : m_i2c(sda, scl), m_addr(addr<<1) {
// activate the peripheral