blob: e6583d60cbb616404d232623a3f9de14ae17f10b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <hwd.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
int main() {
hwd::sinewave::set_amplitude(11);
hwd::sinewave::set_frequency(10);
hwd::sinewave::set_phase(30);
for (int i = 1; i < 1200; i++) {
std::cout << hwd::sinewave::get_point() << std::endl;
}
return 0;
}
|