simplify for single SG90

Dependents:   lidarproj

Fork of SG90 by Mathias Lyngklip

Committer:
oldmon
Date:
Mon Jun 18 12:02:48 2018 +0000
Revision:
1:93e46a70966f
Parent:
0:a62b163b1dbb
SG90 simpllfy

Who changed what in which revision?

UserRevisionLine numberNew contents of line
iLyngklip 0:a62b163b1dbb 1 #ifndef SG90_H
iLyngklip 0:a62b163b1dbb 2 #define SG90_H
iLyngklip 0:a62b163b1dbb 3 #include "mbed.h"
iLyngklip 0:a62b163b1dbb 4
oldmon 1:93e46a70966f 5 class SG90:public PwmOut{
iLyngklip 0:a62b163b1dbb 6 public:
oldmon 1:93e46a70966f 7 SG90(PinName pwnPin);
oldmon 1:93e46a70966f 8 void SetAngle(float fAngle);
oldmon 1:93e46a70966f 9 private:
oldmon 1:93e46a70966f 10 int iPreRotate;
iLyngklip 0:a62b163b1dbb 11 };
oldmon 1:93e46a70966f 12 #endif