эээм
Dependencies: mbed-STM32F103C8T6 mbed
main.cpp
- Committer:
- RuslanUrya
- Date:
- 2018-04-07
- Revision:
- 0:2d3da2f0f265
- Child:
- 1:c86ffbbf8803
File content as of revision 0:2d3da2f0f265:
#include "mbed.h" #include "stm32f103c8t6.h" #define position (100 / 20) PwmOut Servo(PB_6); int main() { confSysClock(); Servo.period_ms(20); while(1) { Servo = position * 1.5; wait(1000); Servo = position * 1.0; wait(1000); Servo = position * 2.0; wait(1000); } }