Closed youxiaojie closed 3 years ago
Hello!
1.sorry, misspell, microOneWire.h, if I use your microds18b20, I don't need official onewire lib.
All my libs are highly optimized and take less resources, especially "micro". microDS18b20 can be running on Attiny13 and take just 300 kB of Flash, while Dallas library takes about 2.5 kB Flash and almost all SRAM memory =)??
300kB? a typo?
1. int DS_rawToInt ( uint16_t data); // convert raw data to int temperature float DS_rawToFloat ( uint16_t data); // convert raw data to float temperature
and DS_TEMP_TYPE calcRaw ( uint16_t data) { return ((DS_TEMP_TYPE) data / 16 ); // Calculate the temperature value }
are the same, why define two funtion?