Skip to content

Commit

Permalink
#1 Moved SetLampIntensity1 to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegue committed Mar 17, 2024
1 parent bf09a5e commit e5d7b81
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions seatalk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
from seatalk.s25_TotalTripLog import TotalTripLog
from seatalk.s26_speed2 import Speed2
from seatalk.s27_water_temperature2 import WaterTemperature2
from seatalk.s30_set_lamp_intensity1 import SetLampIntensity1
from seatalk.s36_cancel_mob import CancelMOB
from seatalk.s38_code_lock_data import CodeLockData
13 changes: 13 additions & 0 deletions seatalk/s30_set_lamp_intensity1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from seatalk.seatalk_datagram import _SetLampIntensityDatagram


class SetLampIntensity1(_SetLampIntensityDatagram):
"""
30 00 0X Set lamp Intensity; X=0: L0, X=4: L1, X=8: L2, X=C: L3
(only sent once when setting the lamp intensity)
"""
seatalk_id = 0x30
data_length = 0

def __init__(self, intensity=0):
_SetLampIntensityDatagram.__init__(self, intensity=intensity)
12 changes: 0 additions & 12 deletions seatalk/seatalk_datagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,6 @@ def __init__(self, intensity=0):
_TwoWayDictDatagram.__init__(self, map=intensity_map, set_key=intensity)


class SetLampIntensity1(_SetLampIntensityDatagram):
"""
30 00 0X Set lamp Intensity; X=0: L0, X=4: L1, X=8: L2, X=C: L3
(only sent once when setting the lamp intensity)
"""
seatalk_id = 0x30
data_length = 0

def __init__(self, intensity=0):
_SetLampIntensityDatagram.__init__(self, intensity=intensity)


class _SeatalkPartPosition(SeatalkDatagram, metaclass=ABCMeta):
"""
BaseClass for PartPositions (Latitude and Longitude)
Expand Down

0 comments on commit e5d7b81

Please sign in to comment.