GY-63_MS5611/libraries/AD5246/examples/AD5246_isConnected/AD5246_isConnected.ino

41 lines
567 B
Arduino
Raw Permalink Normal View History

2023-08-02 05:27:59 -04:00
//
// FILE: AD5246_isConnected.ino
// AUTHOR: Rob Tillaart
// PURPOSE: AD5246 demo program
// URL: https://github.com/RobTillaart/AD5246
#include "AD5246.h"
AD5246 AD;
void setup()
{
Serial.begin(115200);
Serial.println();
Serial.println(__FILE__);
2023-12-06 09:53:56 -05:00
Serial.print("AD5246_LIB_VERSION: ");
2023-08-02 05:27:59 -04:00
Serial.println(AD5246_LIB_VERSION);
Wire.begin();
Wire.setClock(400000);
bool b = AD.begin();
Serial.println(b ? "true" : "false");
Serial.println(AD.isConnected());
Serial.println("\nDone...");
}
void loop()
{
}
// -- END OF FILE --