Driver for TMP06 temperature sensor. Data is sent by PWM. Tested on Hani-IoT board with TMP06BRTZ sensor.
Example usage
main.cpp
#include "mbed.h" #include "TMP06.h" int main() { TMP06 temp_sensor(P0_1); float temperature; while (true) { if(temp_sensor.read(&temperature) == SUCCESS) { printf("Temperature: %f\n", temperature); } else { printf("Error!\n"); } ThisThread::sleep_for(2000); } }
History
blocker for rise and fall functions
2020-03-03, by Pawel Zarembski [Tue, 03 Mar 2020 14:28:12 +0100] rev 2
blocker for rise and fall functions
update license
2020-02-25, by Pawel Zarembski [Tue, 25 Feb 2020 11:36:34 +0100] rev 1
update license
populate repo
2020-02-25, by Pawel Zarembski [Tue, 25 Feb 2020 11:30:44 +0100] rev 0
populate repo