Skip to content

Commit e4963bf

Browse files
committed
Added generation of protected methods documentation
1 parent 553c8cf commit e4963bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

axp192.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def _set_gpio_pwm_out(self, gpio_num: int, duty_cycle: int) -> None:
600600
PWM Output voltage is VINT (2.5V)
601601
602602
:param int gpio_num: Number of the GPIO to set as PWM output. Allowed values: 1 or 2
603-
:param int duty_cyle = PWM duty cycle. Range 0-255
603+
:param int duty_cyle: PWM duty cycle. Range 0-255
604604
"""
605605
self.__validate_gpio_num(gpio_num)
606606
if 1 <= gpio_num <= 2:
@@ -647,7 +647,6 @@ def _is_gpio_pwm_out(self, gpio_num: int) -> bool:
647647
:param int gpio_num: Number of the GPIO to check. Allowed values: 1, 2
648648
:returns: True when GPIO is in PWM output mode
649649
:rtype: bool
650-
651650
"""
652651
self.__validate_gpio_num(gpio_num)
653652
if 1 <= gpio_num <= 2:

docs/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
77
.. automodule:: axp192
88
:members:
9+
:private-members:
10+
:no-undoc-members:

0 commit comments

Comments
 (0)