Demonstrates the MAX44000 library and some of the features of the MAX44000

Dependencies:   MAX44000 ard2pmod mbed

Fork of ALS_ARD2PMOD_Demo by Maxim Integrated

MAX44000PMB1 Demonstration

This demonstrates some of the capabilities of the MAX44000. This is written to work with the MAXREFDES72# adapter board and the MAX44000PMB1 peripheral module. It uses the standard Arduino pin names and it will compile for most arduino form-factor mbed boards. /media/uploads/switches/max44000pmb1_demo.jpg To run this demonstration you will need:

In this demonstration the LEDs are changed based on data from the sensor.

  • LED1 toggles when something is first detected by the proximity sensor.
  • LED2 indicates when the Ambient Light Sensor reads greater than a set value (alsLim).
  • LED3 will stay on whenever something is detected by the proximity sensor and stay on for an additional 5s after it is no longer detected.

Note: Some boards use D13 for an LED signal, so this example uses the second row (row B, pins 7 through 12) of the Pmod connector. /media/uploads/switches/max44000_align.jpg

Tested platform boards

Links to external supporting material

Files at this revision

API Documentation at this revision

Comitter:
switches
Date:
Fri Apr 08 22:18:06 2016 +0000
Parent:
6:b6458d1b6b31
Child:
8:fb192510004d
Commit message:
Added namespace to PMOD_TYPE

Changed in this revision

ard2pmod.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/ard2pmod.lib	Fri Apr 08 21:02:51 2016 +0000
+++ b/ard2pmod.lib	Fri Apr 08 22:18:06 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Maxim-Integrated/code/ard2pmod/#349f2ec17a4b
+http://developer.mbed.org/teams/Maxim-Integrated/code/ard2pmod/#abb327ca5580
--- a/main.cpp	Fri Apr 08 21:02:51 2016 +0000
+++ b/main.cpp	Fri Apr 08 22:18:06 2016 +0000
@@ -39,7 +39,7 @@
 
 int main()
 {
-    Ard2Pmod ard2pmod(PMOD_TYPE_I2C_B);  // Configure ard2pmod multiplexer for I2C
+    Ard2Pmod ard2pmod(Ard2Pmod::PMOD_TYPE_I2C_B);  // Configure ard2pmod multiplexer for I2C
     char cmd[2];
     int alsData;
 
--- a/mbed.bld	Fri Apr 08 21:02:51 2016 +0000
+++ b/mbed.bld	Fri Apr 08 22:18:06 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/99a22ba036c9
\ No newline at end of file