Goutami Bhat
/
DCmotor
DCmotor rotation depends on pin switch
Fork of HelloWorld by
main.cpp@2:2187486a8fea, 2016-11-25 (annotated)
- 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?
User | Revision | Line number | New 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 | } |