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
Diff: main.cpp
- Revision:
- 4:a81f44fc487e
- Parent:
- 3:c6a589f444b9
- Child:
- 5:3c3ef17a17a6
--- a/main.cpp Sat Jul 02 07:51:56 2016 +0000 +++ b/main.cpp Sat Jul 02 08:25:56 2016 +0000 @@ -5,7 +5,7 @@ int main() { while(1) { - // The on-board LED is connected to pin PC_13 and, via a resistor, to +3V3. + // The on-board LED is connected, via a resistor, to +3.3V (instead of GND). // So to turn the LED on or off we have to set it to 0 or 1 respectively myled = 0; // turn the LED on wait(0.2); // 200 ms