Go to the source code of this file.
 | 
| 
#define  | ES08A_MIN_PULSE_WIDTH   600 | 
|   | 
| 
#define  | ES08A_MAX_PULSE_WIDTH   2200 | 
|   | 
| 
#define  | ES08A_PERIOD   20000 | 
|   | 
| 
#define  | ES08A_MAX_ANGLE   180.0 | 
|   | 
      
        
          | es08a_context es08a_init  | 
          ( | 
          int32_t  | 
          pin,  | 
        
        
           | 
           | 
          int32_t  | 
          min_pulse_width,  | 
        
        
           | 
           | 
          int32_t  | 
          max_pulse_width  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Instantiates a the servo at the given pin
- Parameters
 - 
  
    | pin | Servo pin number  | 
    | minPulseWidth | Minimum pulse width, in microseconds  | 
    | maxPulseWidth | Maximum pulse width, in microseconds  | 
    | waitAndDisablePwm | If 1, PWM is enabled only during the setAngle() execution for a period of 1 second, and then turned back off. If 0, PWM remains on afterward.  | 
  
   
 
 
Halts PWM for this servo and allows it to move freely. 
 
 
      
        
          | upm_result_t es08a_set_angle  | 
          ( | 
          es08a_context  | 
          dev,  | 
        
        
           | 
           | 
          int32_t  | 
          angle  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Sets the angle of the servo engine.
- Parameters
 - 
  
    | angle | Number between 0 and 180  | 
  
   
- Returns
 - 0 if successful, non-zero otherwise 
 
 
 
Sets the minimum pulse width
- Parameters
 - 
  
    | width | Minimum HIGH signal width  | 
  
   
 
 
Sets the maximum pulse width
- Parameters
 - 
  
    | width | Maximum HIGH signal width  | 
  
   
 
 
Returns the minimum pulse width
- Returns
 - Minimum pulse width 
 
 
 
Returns the maximum pulse width
- Returns
 - Maximum pulse width