First commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#include <Wire.h>
|
||||
#include "i2c.h"
|
||||
#include "i2c_MAX44009.h"
|
||||
MAX44009 max44009;
|
||||
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
|
||||
Serial.println("Probe MAX44009: ");
|
||||
if (max44009.initialize()) Serial.println("Sensor found");
|
||||
else
|
||||
{
|
||||
Serial.println("Sensor missing");
|
||||
while (1) { };
|
||||
}
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
static unsigned long mLux_value;
|
||||
|
||||
max44009.getMeasurement(mLux_value);
|
||||
|
||||
Serial.print("mLUX: ");
|
||||
Serial.print(mLux_value);
|
||||
Serial.println(" ");
|
||||
|
||||
delay(40);
|
||||
}
|
||||
|
||||
/**<
|
||||
|
||||
Program size:
|
||||
A1.0.5: 5126b
|
||||
A1.5.7: 4860b
|
||||
A1.6.3: 4764b / 463b
|
||||
*/
|
Reference in New Issue
Block a user