DCmotor rotation depends on pin switch

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

Committer:
goutami
Date:
Fri Nov 25 16:58:29 2016 +0000
Revision:
2:2187486a8fea
Parent:
0:fb6bbc10ffa0
DCmotor rotation based on switch pin

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 0:fb6bbc10ffa0 1 #include "mbed.h"
goutami 2:2187486a8fea 2 #include "Dcmotor.h"
goutami 2:2187486a8fea 3
goutami 2:2187486a8fea 4 Dcmotor Rotation;
goutami 2:2187486a8fea 5
simon 0:fb6bbc10ffa0 6 int main() {
goutami 2:2187486a8fea 7 Rotation.Dc();
goutami 2:2187486a8fea 8 Rotation.Dc();
goutami 2:2187486a8fea 9 }