Het is kut

Dependencies:   HIDScope biquadFilter mbed

Fork of KUT_HIDSCOPE by Jan Boerman

main.cpp

Committer:
Jankoekenpan
Date:
2016-10-20
Revision:
0:e7f5d0b44e22
Child:
1:d357a1e80389

File content as of revision 0:e7f5d0b44e22:

#include "mbed.h"
#include "HIDScope.h"


AnalogIn emg1(A1);
AnalogIn emg2(A2);
HIDScope scope(1);
Ticker ticker;

void tick() {
    scope.set(0, emg1.read());
    scope.set(1, emg2.read());
    scope.send();
}

int main()
{
   ticker.attach(&tick, 1/1200);
   while (true);
}