diff --git a/py/hexagram/speedo.py b/py/hexagram/speedo.py new file mode 100644 index 0000000..388da36 --- /dev/null +++ b/py/hexagram/speedo.py @@ -0,0 +1,16 @@ +import enum + +from hexagram.cluster import Dial + +class SpeedUnits(enum.Enum): + KPH = 0 + MPH = 1 + +class Speedo(Dial): + __slots__ = 'units', 'max_speed', + + def __init__(self, x: float, y: float, radius: float, units: SpeedUnits, max_speed: float): + super().__init__(x, y, radius) + + self.units = units + self.max_speed = max_speed