stepper motor
Dependencies: SimpleSteppers mbed
main.cpp@0:c935687f4bfe, 2018-03-26 (annotated)
- Committer:
- cathal66
- Date:
- Mon Mar 26 06:34:16 2018 +0000
- Revision:
- 0:c935687f4bfe
stepper motor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cathal66 | 0:c935687f4bfe | 1 | #include "mbed.h" |
cathal66 | 0:c935687f4bfe | 2 | |
cathal66 | 0:c935687f4bfe | 3 | DigitalOut myled(LED1); |
cathal66 | 0:c935687f4bfe | 4 | |
cathal66 | 0:c935687f4bfe | 5 | int main() { |
cathal66 | 0:c935687f4bfe | 6 | while(1) { |
cathal66 | 0:c935687f4bfe | 7 | myled = 1; |
cathal66 | 0:c935687f4bfe | 8 | wait(0.2); |
cathal66 | 0:c935687f4bfe | 9 | myled = 0; |
cathal66 | 0:c935687f4bfe | 10 | wait(0.2); |
cathal66 | 0:c935687f4bfe | 11 | } |
cathal66 | 0:c935687f4bfe | 12 | } |