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 C12832 LM75B
main.cpp@10:f61535dd9391, 2021-12-08 (annotated)
- Committer:
- brissou
- Date:
- Wed Dec 08 14:38:42 2021 +0000
- Revision:
- 10:f61535dd9391
- Parent:
- 9:f1171717f973
13
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| okano | 0:ce7a8546502b | 1 | #include "mbed.h" |
| chris | 2:9e757151de9b | 2 | #include "LM75B.h" |
| chris | 5:608f2bf4d3f7 | 3 | #include "C12832.h" |
| okano | 0:ce7a8546502b | 4 | |
| chris | 6:bb84f3ab523d | 5 | // Using Arduino pin notation |
| chris | 6:bb84f3ab523d | 6 | C12832 lcd(D11, D13, D12, D7, D10); |
| rtk | 9:f1171717f973 | 7 | // Instantation d'un objet de classe LM75B |
| brissou | 10:f61535dd9391 | 8 | LM75B LM(I2C_SDA,I2C_SCL); |
| rtk | 9:f1171717f973 | 9 | |
| okano | 0:ce7a8546502b | 10 | |
| chris | 2:9e757151de9b | 11 | int main () |
| okano | 0:ce7a8546502b | 12 | { |
| chris | 6:bb84f3ab523d | 13 | while (1) { |
| chris | 6:bb84f3ab523d | 14 | lcd.cls(); |
| chris | 6:bb84f3ab523d | 15 | lcd.locate(0,3); |
| brissou | 10:f61535dd9391 | 16 | lcd.printf("La temperature est de = %.1f °C", LM.temp()); // Récupérer la température |
| chris | 6:bb84f3ab523d | 17 | wait(1.0); |
| chris | 2:9e757151de9b | 18 | } |
| okano | 0:ce7a8546502b | 19 | } |