0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-09 11:18:07 +00:00
MarlinFirmware/Marlin/src/HAL/HAL_TEENSY35_36/HAL_Servo_Teensy.h
2017-09-27 10:41:27 -05:00

18 lines
461 B
C++

#ifndef HAL_Servo_Teensy_h
#define HAL_Servo_Teensy_h
#include <Servo.h>
// Inherit and expand on the official library
class libServo : public Servo {
public:
int8_t attach(const int pin);
int8_t attach(const int pin, const int min, const int max);
void move(const int value);
private:
uint16_t min_ticks;
uint16_t max_ticks;
uint8_t servoIndex; // index into the channel data for this servo
};
#endif // HAL_Servo_Teensy_h