mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
42 lines
550 B
Arduino
42 lines
550 B
Arduino
|
//
|
||
|
// 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__);
|
||
|
Serial.println();
|
||
|
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 --
|
||
|
|
||
|
|