32 lines
406 B
Arduino
Raw Normal View History

2021-01-29 12:31:58 +01:00
//
// FILE: mcp9808_minimum.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
// DATE: 2020-11-12
2021-11-08 20:21:36 +01:00
2021-01-29 12:31:58 +01:00
#include "mcp9808.h"
MCP9808 ts(24);
2021-11-08 20:21:36 +01:00
2021-01-29 12:31:58 +01:00
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
2023-10-04 15:50:10 +02:00
Serial.print("MCP9808_LIB_VERSION: ");
Serial.println(MCP9808_LIB_VERSION);
Wire.begin();
2021-01-29 12:31:58 +01:00
}
2021-11-08 20:21:36 +01:00
2021-01-29 12:31:58 +01:00
void loop()
{
delay(2000);
Serial.println(ts.getTemperature(), 4);
}
2021-11-08 20:21:36 +01:00
2021-01-29 12:31:58 +01:00
// -- END OF FILE --