Nieuwe kinematica + potmeter

Dependencies:   HIDScope MODSERIAL QEI biquadFilter mbed

Fork of Project_script_union_potmeter by Marijke Zondag

Committer:
Gijsvanoort
Date:
Mon Sep 11 10:42:39 2017 +0000
Revision:
1:40470bc517f1
Parent:
0:c8f15874531b
Child:
2:2f4444f1504d
Added \r's to force Carriage return

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vsluiter 0:c8f15874531b 1 #include "mbed.h"
vsluiter 0:c8f15874531b 2 #include "MODSERIAL.h"
vsluiter 0:c8f15874531b 3
vsluiter 0:c8f15874531b 4 DigitalOut myled(LED_GREEN);
vsluiter 0:c8f15874531b 5 MODSERIAL pc(USBTX, USBRX);
vsluiter 0:c8f15874531b 6
vsluiter 0:c8f15874531b 7 int main()
vsluiter 0:c8f15874531b 8 {
vsluiter 0:c8f15874531b 9 int i = 0;
vsluiter 0:c8f15874531b 10 pc.baud(115200);
Gijsvanoort 1:40470bc517f1 11 pc.printf("Hello World!\r\n");
vsluiter 0:c8f15874531b 12
vsluiter 0:c8f15874531b 13 while (true) {
vsluiter 0:c8f15874531b 14 wait(0.5f); // wait a small period of time
Gijsvanoort 1:40470bc517f1 15 pc.printf("%d \r\n", i); // print the value of variable i
vsluiter 0:c8f15874531b 16 i++; // increment the variable
vsluiter 0:c8f15874531b 17 myled = !myled; // toggle a led
vsluiter 0:c8f15874531b 18 }
vsluiter 0:c8f15874531b 19 }