Wansik Choi / Mbed 2 deprecated linear_motor

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LinearMotor.cpp Source File

LinearMotor.cpp

00001 #include "LinearMotor.h"
00002 #include "mbed.h"
00003 Serial pc1(SERIAL_TX, SERIAL_RX);
00004 
00005 LinearMotor::LinearMotor(PinName Dir, PinName Pulse, PinName St, PinName Limit)
00006 :dir(Dir), pulse(Pulse), st(St), limit(Limit) 
00007 {
00008     st.write(1);
00009     limit.mode(PullUp);
00010 }
00011