Anim

Dependencies:   BSP_DISCO_F429ZI EEPROM_DISCO_F429ZI FT810 GYRO_DISCO_F429ZI KEYPAD_DISCO_F429ZI LCD_DISCO_F429ZI PinDetect SDRAM_DISCO_F429ZI TS_DISCO_F429ZI mbed

Committer:
mozillain
Date:
Wed Jan 24 13:10:37 2018 +0000
Revision:
1:2ceb29686290
Anim

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mozillain 1:2ceb29686290 1 #ifndef MBED_STEPPER_H
mozillain 1:2ceb29686290 2 #define MBED_STEPPER_H
mozillain 1:2ceb29686290 3 #endif
mozillain 1:2ceb29686290 4
mozillain 1:2ceb29686290 5 #include "mbed.h"
mozillain 1:2ceb29686290 6
mozillain 1:2ceb29686290 7 class stepper
mozillain 1:2ceb29686290 8 {
mozillain 1:2ceb29686290 9 public:
mozillain 1:2ceb29686290 10 stepper(PinName _en, PinName _stepPin, PinName dir);
mozillain 1:2ceb29686290 11 void step(int microstep, int dir, float speed);
mozillain 1:2ceb29686290 12 void enable();
mozillain 1:2ceb29686290 13 void disable();
mozillain 1:2ceb29686290 14 private:
mozillain 1:2ceb29686290 15 DigitalOut en;
mozillain 1:2ceb29686290 16 DigitalOut stepPin;
mozillain 1:2ceb29686290 17 DigitalOut direction;
mozillain 1:2ceb29686290 18 };
mozillain 1:2ceb29686290 19