LED Demo with proximity sensor support for nexpaq development system

Dependencies:   MAX44000 nexpaq_mdk

Fork of LED_Prox_Demo by Maxim nexpaq

LED Prox Demo

MAX32625NEXPAQ development module

This project is a demonstration application for the MAX32625NEXPAQ development module. You will need the nexpaq application and a compatible phone to run this demo, along with the MAX44000PMB1# peripheral module. This project demonstrates polling the proximity sensor to use it like a button and sending the information back to the application running on the phone, and the phone controlling the on board RGB LED to create different colors.

Go to the nexpaq developers hub for details on how to load the code for the tile into the application.

Resources

Revision:
9:ab02ac0fe404
Parent:
8:42704f06a339
--- a/main.cpp	Sat Oct 15 18:50:12 2016 +0000
+++ b/main.cpp	Wed Oct 19 01:05:12 2016 +0000
@@ -12,7 +12,7 @@
 #define		FUNCTION_TABLE_NUM					1
 #define		UUID_NUM							16			//UUID number is 16, don't change it
 #define     LOOP_DELAY                          100
-#define     PROX_THRESHOLD                      50
+#define     PROX_THRESHOLD                      10
 
 /***** Globals *****/
 void my_function_CMD_2700(unsigned char *pData, unsigned char len);
@@ -42,7 +42,7 @@
         // Register failed handle code
         error("MDK Register Failed");
     }
-    max44000.init(MAX44000::MODE_ALS_PROX, MAX44000::ALSTIM_64X, MAX44000::ALSPGA_1X, MAX44000::DRV_110);
+    max44000.init(MAX44000::MODE_ALS_PROX, MAX44000::ALSTIM_64X, MAX44000::ALSPGA_1X, MAX44000::DRV_10);
     ledR = 1.0f;
     ledG = 1.0f;
     ledB = 1.0f;