Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope mbed biquadFilter
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);
}