Paulo Gonçalves / Mbed 2 deprecated objeto_motor_de_passo

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "motor_de_passo.h"
00003 
00004 int main() {
00005     Motor_de_passo M1 (PTC9,PTA5,PTC8,PTA4);
00006     M1.vel = 0.5;
00007     M1.n_passos=400;
00008     
00009     M1.girar(-360); 
00010     
00011     while(1){
00012        }
00013 }