@@ -350,7 +350,7 @@ def initialize(self):
350350 @property
351351 def internal_temperature (self ):
352352 """The temperature as measured by the EMC2101's internal 8-bit temperature sensor"""
353- return self ._int_temp # !!! it's RAAAAAAAAARW)
353+ return self ._int_temp
354354
355355 @property
356356 def external_temperature (self ):
@@ -365,11 +365,22 @@ def external_temperature(self):
365365 return full_tmp
366366
367367 def set_pwm_clock (self , use_preset = False , use_slow = False ):
368- """Select the PWM clock source. Set `use_preset` to True to select between two
369- preset clock sources. If `use_slow` is set, the 1.4kHz clock will be used, otherwise
370- use the 360kHz clock.
371-
372- If `use_preset` is false, the pwm clock is set by the value of `pwm_frequency`"""
368+ """
369+ Select the PWM clock source, chosing between two preset clocks or by configuring the
370+ clock using `pwm_frequency` and `pwm_frequency_divisor`.
371+
372+ :param bool use_preset:
373+ True: Select between two preset clock sources
374+ False: The PWM clock is set by `pwm_frequency` and `pwm_frequency_divisor`
375+ :param bool use_slow:
376+ True: Use the 1.4kHz clock
377+ False: Use the 360kHz clock.
378+ :type priority: integer or None
379+ :return: None
380+ :raises AttributeError: if use_preset is not a `bool`
381+ :raises AttributeError: if use_slow is not a `bool`
382+
383+ """
373384
374385 if not isinstance (use_preset , bool ):
375386 raise AttributeError ("use_preset must be given a bool" )
0 commit comments