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
- Committer:
- chris
- Date:
- 2014-02-07
- Revision:
- 6:bb84f3ab523d
- Parent:
- 5:608f2bf4d3f7
- Child:
- 7:80852d9feb4b
File content as of revision 6:bb84f3ab523d:
#include "mbed.h"
#include "LM75B.h"
#include "C12832.h"
// Using Arduino pin notation
C12832 lcd(D11, D13, D12, D7, D10);
LM75B sensor(SDA,SCL);
int main ()
{
while (1) {
lcd.cls();
lcd.locate(0,3);
lcd.printf("Temp = %.1f\n", float(sensor));
wait(1.0);
}
}