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.
Dependencies: mbed LM19_Driver1
main.cpp@0:07c8d703fafd, 2021-11-10 (annotated)
- Committer:
- mgimple
- Date:
- Wed Nov 10 15:30:51 2021 +0000
- Revision:
- 0:07c8d703fafd
uses LM19 driver to read temp and voltage(converted)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mgimple | 0:07c8d703fafd | 1 | #include "mbed.h" |
| mgimple | 0:07c8d703fafd | 2 | #include "LM19_Driver.h" |
| mgimple | 0:07c8d703fafd | 3 | |
| mgimple | 0:07c8d703fafd | 4 | Serial pc(USBTX, USBRX); |
| mgimple | 0:07c8d703fafd | 5 | LM19 t_sensor(p19); |
| mgimple | 0:07c8d703fafd | 6 | |
| mgimple | 0:07c8d703fafd | 7 | int main() { |
| mgimple | 0:07c8d703fafd | 8 | while(1) { |
| mgimple | 0:07c8d703fafd | 9 | pc.printf("Temperature = %f\r\n",t_sensor.temp()); |
| mgimple | 0:07c8d703fafd | 10 | pc.printf("Voltage = %f \r\n", t_sensor.volt()); |
| mgimple | 0:07c8d703fafd | 11 | } |
| mgimple | 0:07c8d703fafd | 12 | } |
