Skip to content

correcting_typo_Conversion_Rate #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adafruit_emc2101/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CV:

@classmethod
def add_values(cls, value_tuples):
"creates CV entries"
"""creates CV entries"""
cls.string = {}
cls.lsb = {}

Expand All @@ -94,7 +94,7 @@ class ConversionRate(CV):
("RATE_1_16", 0, str(1 / 16.0), None),
("RATE_1_8", 1, str(1 / 8.0), None),
("RATE_1_4", 2, str(1 / 4.0), None),
("RATE_1_2", 3, str(126.0), None),
("RATE_1_2", 3, str(1 / 2.0), None),
("RATE_1", 4, str(1.0), None),
("RATE_2", 5, str(2.0), None),
("RATE_4", 6, str(4.0), None),
Expand Down
6 changes: 3 additions & 3 deletions adafruit_emc2101/emc2101_lut.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ class EMC2101_LUT(EMC2101): # pylint: disable=too-many-instance-attributes
_pwm_freq_div = UnaryStruct(_PWM_DIV, "<B")

lut_temperature_hysteresis = UnaryStruct(_LUT_HYSTERESIS, "<B")
"""The amount of hysteresis in Degrees celcius of hysteresis applied to temperature readings
"""The amount of hysteresis in Degrees Celsius of hysteresis applied to temperature readings
used for the LUT. As the temperature drops, the controller will switch to a lower LUT entry when
the measured value is belowthe lower entry's threshold, minus the hysteresis value"""
the measured value is below the lower entry's threshold, minus the hysteresis value"""

def __init__(self, i2c_bus):
super().__init__(i2c_bus)
Expand All @@ -176,7 +176,7 @@ def initialize(self):

def set_pwm_clock(self, use_preset=False, use_slow=False):
"""
Select the PWM clock source, chosing between two preset clocks or by configuring the
Select the PWM clock source, choosing between two preset clocks or by configuring the
clock using `pwm_frequency` and `pwm_frequency_divisor`.

:param bool use_preset:
Expand Down