I2C sensor test program, derived from testI2C program. Simple test for FXOS8700CQ, HIH6130, MAG3110, MMA8451Q, MMA8452Q, MPL3115A2, MAX44000, MAX44005, MAX44008, MAX30101 included beside simple I2C read/write from testI2C.
Dependencies: FXOS8700CQ HIH6130 IS31SE5000 MAG3110 MAX44000 MAX44005 MAX44008 MMA8451Q MMA8452Q MPL3115A2 VEML6040 VEML6075 mbed vt100 LM75B FXAS21002 MAX30101 VCNL4020 VCNL4100
Diff: testSensor.cpp
- Revision:
- 14:1e6e4fdf90d0
- Parent:
- 13:91e4be27e7c1
- Child:
- 17:514f67d94d12
--- a/testSensor.cpp Fri Mar 10 04:19:05 2017 +0000 +++ b/testSensor.cpp Mon Mar 27 08:04:29 2017 +0000 @@ -129,6 +129,7 @@ printf("loop <number> : specify loop count for test\n") ; printf("interval <numver> : ms interval for each loop\n") ; printf("status : print current status\n") ; + printf("demo : mulitple sensor demo\n") ; printf("help : print this help\n") ; printf("\nPlease set local-echo to see what you are typing.\n") ; printf("\n") ; @@ -250,6 +251,8 @@ doOpen() ; break ; case 'c': case 'C': /* close */ doClose() ; break ; + case 'd': case 'D': /* demo */ + doDemo() ; break ; case 'r': case 'R': /* read */ doRead() ; break ; case 'w': case 'W': /* write */