libwallaby  v24
The wallaby standard library
Servo Class Reference

#include <servo.hpp>

Public Types

typedef unsigned int ticks_t
 

Public Member Functions

 Servo (int port)
 
void setPosition (ticks_t position)
 
ticks_t position () const
 
void disable ()
 
void enable ()
 
void setEnabled (bool enabled)
 
bool isEnabled () const
 

Member Typedef Documentation

◆ ticks_t

typedef unsigned int Servo::ticks_t

Constructor & Destructor Documentation

◆ Servo()

Servo::Servo ( int  port)

Member Function Documentation

◆ disable()

void Servo::disable ( )

◆ enable()

void Servo::enable ( )

◆ isEnabled()

bool Servo::isEnabled ( ) const

◆ position()

ticks_t Servo::position ( ) const

◆ setEnabled()

void Servo::setEnabled ( bool  enabled)

◆ setPosition()

void Servo::setPosition ( ticks_t  position)

The documentation for this class was generated from the following file: