Scope for embedded C++ to transmit data for a data-scope.
Designed to transmit data for uScope (https://bitbucket.org/ctw-bw/uscope).
Branch | Used for |
---|---|
main | MBED, UART Serial |
mbed_hid | MBED, HID USB |
arduino | Arduino, UART Serial |
You can use the library like:
#include "mbed.h"
#include "mbed-scope/scope.h"
Scope scope(2); // Create two channels
int main()
{
while (true) {
scope.set(0, 3.14f);
float r = static_cast <float> (rand()) / static_cast <float> (RAND_MAX);
scope.set(1, r);
scope.send();
ThisThread::sleep_for(1ms);
}
}