sqefqsdf
Dependencies: C12832 EthernetInterface LM75B mbed-rtos mbed
Fork of app-board-LM75B by
main.cpp@2:9e757151de9b, 2012-10-26 (annotated)
- Committer:
- chris
- Date:
- Fri Oct 26 21:25:35 2012 +0000
- Revision:
- 2:9e757151de9b
- Parent:
- 1:6484448034e3
- Child:
- 3:4d612f16ad84
First commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 2:9e757151de9b | 1 | /* Copyright (c) 2012 cstyles, MIT License |
chris | 2:9e757151de9b | 2 | * |
chris | 2:9e757151de9b | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
chris | 2:9e757151de9b | 4 | * and associated documentation files (the "Software"), to deal in the Software without restriction, |
chris | 2:9e757151de9b | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
chris | 2:9e757151de9b | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
chris | 2:9e757151de9b | 7 | * furnished to do so, subject to the following conditions: |
okano | 0:ce7a8546502b | 8 | * |
chris | 2:9e757151de9b | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
chris | 2:9e757151de9b | 10 | * substantial portions of the Software. |
okano | 0:ce7a8546502b | 11 | * |
chris | 2:9e757151de9b | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
chris | 2:9e757151de9b | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
chris | 2:9e757151de9b | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
chris | 2:9e757151de9b | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
chris | 2:9e757151de9b | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
okano | 0:ce7a8546502b | 17 | */ |
okano | 0:ce7a8546502b | 18 | |
okano | 0:ce7a8546502b | 19 | #include "mbed.h" |
chris | 2:9e757151de9b | 20 | #include "LM75B.h" |
chris | 2:9e757151de9b | 21 | #include "C12832_lcd.h" |
okano | 0:ce7a8546502b | 22 | |
chris | 2:9e757151de9b | 23 | C12832_LCD lcd; |
chris | 2:9e757151de9b | 24 | LM75B tmp(p28,p27); |
okano | 0:ce7a8546502b | 25 | |
chris | 2:9e757151de9b | 26 | int main () |
okano | 0:ce7a8546502b | 27 | { |
okano | 0:ce7a8546502b | 28 | |
chris | 2:9e757151de9b | 29 | while (1) { |
chris | 2:9e757151de9b | 30 | lcd.cls(); |
chris | 2:9e757151de9b | 31 | lcd.locate(0,3); |
chris | 2:9e757151de9b | 32 | lcd.printf("%.2f\n",tmp.read()); |
chris | 2:9e757151de9b | 33 | wait(1.0); |
chris | 2:9e757151de9b | 34 | } |
okano | 0:ce7a8546502b | 35 | |
okano | 0:ce7a8546502b | 36 | } |