Grove Temp sensor Hello world example
Dependencies: Grove_temp_sensor mbed
Revision 2:772a59579086, committed 2016-03-10
- Comitter:
- peipei123
- Date:
- Thu Mar 10 19:08:46 2016 +0000
- Parent:
- 1:e3c235c7edaf
- Child:
- 3:056a7a65f807
- Commit message:
- 1
Changed in this revision
| Grove_temp_sensor.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Grove_temp_sensor.h Wed Mar 09 22:14:38 2016 +0000
+++ b/Grove_temp_sensor.h Thu Mar 10 19:08:46 2016 +0000
@@ -4,8 +4,20 @@
class Grove_temp_sensor
{
public:
+ /** Read the servo motors current position
+ *
+ * @param returns A normalised number 0.0-1.0 representing the full range.
+ */
Grove_temp_sensor(PinName pin);
+ /** Read the servo motors current position
+ *
+ * @param returns A normalised number 0.0-1.0 representing the full range.
+ */
Grove_temp_sensor();
+ /** Read the servo motors current position
+ *
+ * @param returns A normalised number 0.0-1.0 representing the full range.
+ */
float read();
private:
//class sets up the AnalogIn pin
Grove Temperature Sensor