fork download
  1. #include <Stepper.h>
  2. Stepper stepper(400, 9, 8, 7, 6);
  3.  
  4. int m=0;
  5. int New_m=0;
  6. void setup() {
  7. Serial.begin(115200);
  8. }
  9. void loop() {
  10. while (1){
  11. if(Serial.available() > 0) {
  12. char data = Serial.read();
  13. m=m+1;
  14. if (New_m!=m){
  15. stepper.setSpeed(10);
  16. stepper.step(10);
  17.  
  18. New_m=m;
  19. }
  20. Serial.print(data);
  21. }
  22. }
  23. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:21: fatal error: Stepper.h: No such file or directory
 #include <Stepper.h>
                     ^
compilation terminated.
stdout
Standard output is empty