Example to show how to read various sensors with STM32 Nucleo board

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
joe_tijerina
Date:
Wed Aug 27 17:35:24 2014 +0000
Parent:
3:6d8574d8c9c1
Commit message:
Added descriptions for each sensor

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Aug 13 22:39:15 2014 +0000
+++ b/main.cpp	Wed Aug 27 17:35:24 2014 +0000
@@ -2,12 +2,12 @@
 #include "ADXL345_I2C.h"
 
 
-//#define LED
-//#define ACCEL 
-//#define LIGHT_SENSOR 
-//#define WATER_SENSOR
-//#define GAS_SENSOR
-#define TEMP_SENSOR
+//#define LED                 // Grove LED
+//#define ACCEL               // SEN04051P Grove - 3-Axis Digital Accelerometer(±16g)
+//#define LIGHT_SENSOR        // Grove Light Sensor using GL5528 photoresistor 
+//#define WATER_SENSOR        // Grove Water Sensor
+//#define GAS_SENSOR          // SEN90512P Grove - Gas Sensor(MQ2)
+#define TEMP_SENSOR           // Grove Temperature Sensor using TTC03 Thermistor 
 
  
 AnalogIn temp_sensor(A0);