Opzetje

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

main.cpp

Committer:
Mortimerz
Date:
2019-09-10
Revision:
2:38ec7638236e
Parent:
1:b862262a9d14
Child:
3:ea5f67f11825

File content as of revision 2:38ec7638236e:

#include "mbed.h"
#include "MODSERIAL.h"
DigitalOut myled2(LED_RED);
DigitalOut myled(LED_BLUE);
MODSERIAL pc(USBTX, USBRX);
 
int main()
{
    pc.printf("\rhallo\n");
    
    while (true) {
        pc.printf("\r");
        char c;
        c= pc.getc();
        myled =!myled;
        myled2 =!myled2;
        pc.printf("\n\r");
        pc.putc(c);
    }
}