SG90.h 265 B

12345678910111213141516
  1. #ifndef __SG90_H
  2. #define __SG90_H
  3. #include "main.h"
  4. typedef struct {
  5. void (* Init)(u16 arr,u16 psc);
  6. void (* Angle)(float angle);
  7. } SG90ClassStruct;
  8. extern SG90ClassStruct SG90Class;
  9. void MG90S_TIM3_Init(u16 arr,u16 psc);
  10. void TIM_Angle(float angle);
  11. #endif