GY-63_MS5611/libraries/AD56X8/examples/AD56X8_wave/AD56X8_wave.ino
2023-01-10 19:34:29 +01:00

40 lines
523 B
C++

//
// FILE: AD56X8_wave.ino
// AUTHOR: Rob Tillaart
// PUPROSE: performance test
#include "AD56X8.h"
AD56X8 AD16_SW(9, 10, 11);
uint32_t start, stop;
int value = 0;
void setup()
{
Serial.begin(115200);
Serial.println();
Serial.println(__FILE__);
Serial.print("AD56X8_LIB_VERSION: ");
Serial.println(AD56X8_LIB_VERSION);
AD16_SW.begin();
value = AD16_SW.getValue(0);
}
void loop()
{
AD16_SW.setValue(0, value);
value++;
if (value == 4096) value = 0;
delay(10);
}
// -- END OF FILE --