
nexpaq development module demo for MAX3010x sensor
Dependencies: MAX30105 nexpaq_mdk
Fork of ALS_Prox_Demo by
Temp Prox Demo
MAX32625NEXPAQ development module
This project is a demonstration application for the MAX32625NEXPAQ development module and a MAX3010x sensor.
This project demonstrates polling the proximity sensor to use it like a button and also polling the temperature sensor and sending the information back to the application running on the phone, and the phone controlling the threshold for the proximity sensor and controlling the on board RGB LED to create different colors.
nexpaq App Tile Files
Revision 10:a81682ee3e73, committed 2016-10-19
- Comitter:
- nexpaq
- Date:
- Wed Oct 19 00:58:53 2016 +0000
- Parent:
- 9:b7cf4b7fd770
- Child:
- 11:4796fdd251fe
- Commit message:
- Changed drive strength for MAX44000PMB1 with series resistance in the power run.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Oct 15 19:07:22 2016 +0000 +++ b/main.cpp Wed Oct 19 00:58:53 2016 +0000 @@ -12,7 +12,7 @@ #define FUNCTION_TABLE_NUM 2 #define UUID_NUM 16 // UUID number is 16, don't change it #define LOOP_DELAY 100 -#define PROX_THRESHOLD 50 +#define PROX_THRESHOLD 10 #define ALS_INTERVAL 10 // about once per second /***** Globals *****/ @@ -65,7 +65,7 @@ if ( np_api_register((MDK_REGISTER_CMD*)my_cmd_func_table, FUNCTION_TABLE_NUM) == MDK_REGISTER_FAILD ) { // Register failed handle code } - 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;