Thanks to Zoltan Hudak publish the way to use STM32F103c8t6 on mbed. Now, this example can let you use it with a encoder.

Dependencies:   QEI mbed-STM32F103C8T6 mbed

Fork of STM32F103C8T6_Hello by Zoltan Hudak

Committer:
hudakz
Date:
Sat Jul 02 07:22:32 2016 +0000
Revision:
0:ab218237069e
Child:
1:1dd12d8c840d
Initial revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hudakz 0:ab218237069e 1 #include "mbed.h"
hudakz 0:ab218237069e 2
hudakz 0:ab218237069e 3 DigitalOut myled(LED1);
hudakz 0:ab218237069e 4
hudakz 0:ab218237069e 5 int main() {
hudakz 0:ab218237069e 6 while(1) {
hudakz 0:ab218237069e 7 myled = 1; // LED is ON
hudakz 0:ab218237069e 8 wait(0.2); // 200 ms
hudakz 0:ab218237069e 9 myled = 0; // LED is OFF
hudakz 0:ab218237069e 10 wait(1.0); // 1 sec
hudakz 0:ab218237069e 11 }
hudakz 0:ab218237069e 12 }