HAL for 32-bit Teensy (3.5, 3.6) architecture

This commit is contained in:
teemuatlut
2017-07-11 21:59:27 +01:00
committed by Scott Lahteine
parent cfef925559
commit f3e562e46e
18 changed files with 1532 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
#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(int pin);
int8_t attach(int pin, int min, int max);
void move(int value);
private:
uint16_t min_ticks;
uint16_t max_ticks;
uint8_t servoIndex; // index into the channel data for this servo
};
#endif