mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
40 lines
523 B
C++
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 --
|