encoder

Dependencies:   MODSERIAL mbed HIDScope biquadFilter

Fork of Project_script by Marijke Zondag

main.cpp

Committer:
MarijkeZondag
Date:
2018-09-16
Revision:
5:107eb09fb095
Parent:
4:fbea05c8fe2b
Child:
6:f4bbb73f3989

File content as of revision 5:107eb09fb095:

#include "mbed.h"
#include "MODSERIAL.h"

DigitalOut gpo(D0);
DigitalOut myled(LED_GREEN);
MODSERIAL pc(USBTX, USBRX);
DigitalIn button(PTA4);

int main()
{ 
    pc.baud(115200);
    pc.printf("Hello World!\r\n");
    char c;
    c = pc.getc();
    pc.printf(" %c \n",c);
    
    while (true)
    {
            gpo     = !gpo;
            myled   = !myled; // toggle a led
            wait (0.5f);
    }
}