Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
servo.h
00001 #ifndef SERVO_H 00002 #define SERVO_H 00003 #include "led.h" 00004 00005 enum ServoState {CALLIB, IDLE, IN_PROGRESS}; 00006 enum DetectorState {ACTIVE, INACTIVE}; 00007 00008 class Servo { 00009 00010 private: 00011 Led myLed; 00012 enum DetectorState eReadDetector(); 00013 enum ServoState eState; 00014 unsigned int uiCurrentPosition; 00015 unsigned int uiDesiredPosition; 00016 00017 public: 00018 void Automat(); 00019 void Callib(void); 00020 void GoTo(unsigned int uiPosition); 00021 void StepRight(unsigned int uiSteps); 00022 }; 00023 00024 #endif
Generated on Mon Aug 1 2022 00:15:39 by
