printer
Dependencies: HCSR04 USBDevice mbed-src mbed mbed
Fork of Serial_HelloWorld_Mbed by
DS18B20.h
00001 #ifndef _DS18B20_ 00002 #define _DS18B20_ 00003 00004 #include <stdint.h> 00005 #include "mbed.h" 00006 00007 // Device Faimly ID and Setial number information 00008 typedef union { 00009 uint8_t rom[8]; 00010 struct { 00011 uint8_t familyCode; 00012 uint8_t serialNo[6]; 00013 uint8_t CRC; 00014 } BYTES; 00015 } ROM_Code_t; 00016 00017 ROM_Code_t ReadROM() ; 00018 00019 // temperature is store as 7.4 fixed point format (assuming 12 bit conversion) 00020 void displayTemperature(Serial& s) ; 00021 void showTemperature(float *f); 00022 00023 #endif
Generated on Wed Jul 13 2022 13:58:00 by 1.7.2