Hello code for "Switch Science mbed LPC824"
Fork of SwitchSciencembedLPC824_test by
Diff: main.cpp
- Revision:
- 10:e508d79a907f
- Parent:
- 9:e2333773718f
- Child:
- 11:7e4aa2823fad
--- a/main.cpp Thu Dec 18 03:20:52 2014 +0000 +++ b/main.cpp Thu Dec 18 10:16:06 2014 +0000 @@ -1,4 +1,8 @@ -/** Hello code for "test_LM75B" */ +/* + * Hello code for "Switch Science mbed LPC824" + * Copyright (c) 2014 Asagi SAEKI, Inc. + * Released under the MIT License: http://mbed.org/license/mit + */ #include "mbed.h" #include "TempSensor_LM75B.h" @@ -26,12 +30,14 @@ int main() { - int i = 0; - /*デバッグ用*/ +/*デバッグ用*/ +// int i = 0; // pc.printf("test\r\n"); while (1) { - pc.printf( " (%d) sensor_0= %4.1f\r\n", i++, (float)thermo_sensor_0 ); +/*デバッグ用*/ +// pc.printf( " (%d) sensor_0= %4.1f\r\n", i++, (float)thermo_sensor_0 ); lcd.printf(0,"temp=\n"); lcd.printf(1,"%4.1f\n",(float)thermo_sensor_0); wait( 1 ); } +} \ No newline at end of file