2019-03-26 08:57:01 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include "drv/b15f.h"
|
2019-03-27 14:48:24 +00:00
|
|
|
#include "drv/plottyfile.h"
|
2019-03-26 08:57:01 +00:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
B15F& drv = B15F::getInstance();
|
|
|
|
drv.init();
|
2019-03-27 09:33:16 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
while(1)
|
|
|
|
{
|
|
|
|
for(uint16_t i = 0; i < 1024; i++)
|
|
|
|
{
|
|
|
|
drv.analogeAusgabe0(drv.analogeEingabe(5));
|
|
|
|
//drv.delay(10);
|
|
|
|
//drv.digitaleAusgabe0(drv.digitaleEingabe0());
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
|
|
|
uint16_t ba[1024];
|
|
|
|
uint16_t bb[1024];
|
2019-03-27 11:57:51 +00:00
|
|
|
drv.analogEingabeSequenz(1, &ba[0], 0, 0, &bb[0], 0, 1023, -1, 1023);
|
|
|
|
|
2019-03-27 14:48:24 +00:00
|
|
|
PlottyFile pf;
|
|
|
|
pf.writeToFile("test_plot");
|
|
|
|
|
|
|
|
system("./plotty --in test_plot");
|
2019-03-27 09:33:16 +00:00
|
|
|
|
2019-03-26 10:35:20 +00:00
|
|
|
std::cout << "Schluss." << std::endl;
|
2019-03-26 08:57:01 +00:00
|
|
|
}
|