Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove old example (it is covered by new one).

  • Loading branch information...
commit 22101d4ad8312f9bcef69878455cf55b84863d3f 1 parent a572fe6
@guyc guyc authored
View
0  ...les/X25serialcontrol/X25serialcontrol.ino → ...les/X25SerialControl/X25SerialControl.ino
File renamed without changes
View
40 examples/X25center/X25center.ino
@@ -1,40 +0,0 @@
-//----------------------------------------------------------------------
-// https://github.com/clearwater/SwitecX25
-//
-// This is a minimal example of SwitchX25 library.
-// It zero's the motor, sets the position to mid-range
-// and calls update repeatedly to move to motor
-// to the center position.
-//
-// You should add calls to motor1.setPosition() to change
-// the motor position, but be sure to leave update() in
-// place.
-//
-// Note that the maximum speed of the motor will be determined
-// by how frequently you call update(). If you put a big slow
-// serial.println() call in the loop below, the motor will move
-// very slowly!
-//----------------------------------------------------------------------
-
-#include <SwitecX25.h>
-
-// standard X25.168 range 315 degrees at 1/3 degree steps
-#define STEPS (315*3)
-
-// For motors connected to pins 3,4,5,6
-SwitecX25 motor1(STEPS,3,4,5,6);
-
-void setup(void)
-{
- // run the motor against the stops
- motor1.zero();
- // start moving towards the center of the range
- motor1.setPosition(STEPS/2);
-}
-
-void loop(void)
-{
- // the motor only moves when you call update
- motor1.update();
-}
-
Please sign in to comment.
Something went wrong with that request. Please try again.