Simple DS1820 sensor demo showing how to use the DS1820 library [https://developer.mbed.org/users/hudakz/code/DS1820/]
Diff: main.cpp
- Revision:
- 6:d68db387a734
- Parent:
- 5:4f7330bb1b64
- Child:
- 7:8beaacebc82d
--- a/main.cpp Mon Jan 21 11:40:17 2019 +0000 +++ b/main.cpp Sat Jan 26 21:22:44 2019 +0000 @@ -11,7 +11,7 @@ Serial pc(USBTX, USBRX); DigitalOut led(LED1); -DS1820 ds1820(PB_9); // substitute p8 with actual mbed pin name connected to the DS1820 data pin +DS1820 ds1820(PB_11); // substitute p8 with actual mbed pin name connected to the DS1820 data pin float temp = 0; int result = 0; @@ -64,4 +64,5 @@ - \ No newline at end of file + +