Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LM61CIZ.h@2:13bcaedf765c, 2015-12-23 (annotated)
- Committer:
- mbed_Cookbook_SE
- Date:
- Wed Dec 23 16:47:50 2015 +0000
- Revision:
- 2:13bcaedf765c
- Parent:
- 1:4a588e05e5b6
??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_Cookbook_SE | 0:8aeec297e67f | 1 | /** |
| mbed_Cookbook_SE | 0:8aeec297e67f | 2 | * LM61CIZ Temperature sensor library |
| mbed_Cookbook_SE | 0:8aeec297e67f | 3 | * |
| mbed_Cookbook_SE | 0:8aeec297e67f | 4 | * @author Junichi Katsu |
| mbed_Cookbook_SE | 0:8aeec297e67f | 5 | * @version 1.0 |
| mbed_Cookbook_SE | 0:8aeec297e67f | 6 | * @date 02-April-2015 |
| mbed_Cookbook_SE | 0:8aeec297e67f | 7 | * |
| mbed_Cookbook_SE | 0:8aeec297e67f | 8 | */ |
| mbed_Cookbook_SE | 0:8aeec297e67f | 9 | |
| mbed_Cookbook_SE | 0:8aeec297e67f | 10 | #ifndef MBED_LM61CIZ_H |
| mbed_Cookbook_SE | 0:8aeec297e67f | 11 | #define MBED_LM61CIZ_H |
| mbed_Cookbook_SE | 0:8aeec297e67f | 12 | |
| mbed_Cookbook_SE | 0:8aeec297e67f | 13 | #include "mbed.h" |
| mbed_Cookbook_SE | 0:8aeec297e67f | 14 | |
| mbed_Cookbook_SE | 0:8aeec297e67f | 15 | /** LM61CIZ class |
| mbed_Cookbook_SE | 1:4a588e05e5b6 | 16 | * @endcode |
| mbed_Cookbook_SE | 0:8aeec297e67f | 17 | */ |
| mbed_Cookbook_SE | 0:8aeec297e67f | 18 | |
| mbed_Cookbook_SE | 0:8aeec297e67f | 19 | class LM61CIZ |
| mbed_Cookbook_SE | 0:8aeec297e67f | 20 | { |
| mbed_Cookbook_SE | 0:8aeec297e67f | 21 | public: |
| mbed_Cookbook_SE | 0:8aeec297e67f | 22 | /** Create a LM61CIZ instance |
| mbed_Cookbook_SE | 0:8aeec297e67f | 23 | * |
| mbed_Cookbook_SE | 0:8aeec297e67f | 24 | * @param AnalogIn pin |
| mbed_Cookbook_SE | 0:8aeec297e67f | 25 | */ |
| mbed_Cookbook_SE | 0:8aeec297e67f | 26 | LM61CIZ(PinName ain); |
| mbed_Cookbook_SE | 0:8aeec297e67f | 27 | |
| mbed_Cookbook_SE | 2:13bcaedf765c | 28 | /** Read the current temperature value from LM61CIZ sensor |
| mbed_Cookbook_SE | 0:8aeec297e67f | 29 | * |
| mbed_Cookbook_SE | 0:8aeec297e67f | 30 | */ |
| mbed_Cookbook_SE | 0:8aeec297e67f | 31 | float getTemperature(void); |
| mbed_Cookbook_SE | 0:8aeec297e67f | 32 | |
| mbed_Cookbook_SE | 0:8aeec297e67f | 33 | private: |
| mbed_Cookbook_SE | 0:8aeec297e67f | 34 | |
| mbed_Cookbook_SE | 0:8aeec297e67f | 35 | AnalogIn _sensor; |
| mbed_Cookbook_SE | 0:8aeec297e67f | 36 | }; |
| mbed_Cookbook_SE | 0:8aeec297e67f | 37 | |
| mbed_Cookbook_SE | 0:8aeec297e67f | 38 | #endif // MBED_LM61CIZ_H |