GY-63_MS5611/libraries/WaveMix/examples/waveMix_demo/waveMix_demo.ino

36 lines
481 B
Arduino
Raw Normal View History

2022-03-25 05:00:26 -04:00
//
// FILE: waveMix_demo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
// URL: https://github.com/RobTillaart/WaveMix
//
#include "WaveMix.h"
WaveMix wm;
float n = 0;
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("WAVEMIX_LIB_VERSION: ");
Serial.println(WAVEMIX_LIB_VERSION);
wm.setPercentage(25);
}
void loop()
{
Serial.println(wm.mix(sin(n), abs(cos(2 * n))) * 100);
n = n + 0.05;
delay(10);
}
// -- END OF FILE --