Opzetje

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

Committer:
Mortimerz
Date:
Tue Sep 10 14:01:45 2019 +0000
Revision:
2:38ec7638236e
Parent:
1:b862262a9d14
Child:
3:ea5f67f11825
hoi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RobertoO 0:67c50348f842 1 #include "mbed.h"
RobertoO 1:b862262a9d14 2 #include "MODSERIAL.h"
Mortimerz 2:38ec7638236e 3 DigitalOut myled2(LED_RED);
Mortimerz 2:38ec7638236e 4 DigitalOut myled(LED_BLUE);
RobertoO 1:b862262a9d14 5 MODSERIAL pc(USBTX, USBRX);
Mortimerz 2:38ec7638236e 6
RobertoO 0:67c50348f842 7 int main()
RobertoO 0:67c50348f842 8 {
Mortimerz 2:38ec7638236e 9 pc.printf("\rhallo\n");
RobertoO 0:67c50348f842 10
RobertoO 0:67c50348f842 11 while (true) {
Mortimerz 2:38ec7638236e 12 pc.printf("\r");
Mortimerz 2:38ec7638236e 13 char c;
Mortimerz 2:38ec7638236e 14 c= pc.getc();
Mortimerz 2:38ec7638236e 15 myled =!myled;
Mortimerz 2:38ec7638236e 16 myled2 =!myled2;
Mortimerz 2:38ec7638236e 17 pc.printf("\n\r");
Mortimerz 2:38ec7638236e 18 pc.putc(c);
RobertoO 0:67c50348f842 19 }
RobertoO 0:67c50348f842 20 }
Mortimerz 2:38ec7638236e 21