19 lines
302 B
Python
19 lines
302 B
Python
from abc import ABC, abstractmethod
|
|
|
|
"""
|
|
This module provides a base class for interacting with servo-like code.
|
|
"""
|
|
|
|
class Servo(ABC):
|
|
|
|
@property
|
|
@abstractmethod
|
|
def percent(self):
|
|
pass
|
|
|
|
@percent.setter
|
|
@abstractmethod
|
|
def percent(self, forward):
|
|
pass
|
|
|
|
|