Skip to content

Commit 95598b5

Browse files
fix RPi5, and fix tests
1 parent 2edaea3 commit 95598b5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: ["ubuntu-latest"]
12-
python-version: ["3.7", "3.8", "3.9"]
12+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1313

1414
steps:
1515
- name: Checkout source

rpi_hardware_pwm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class HardwarePWM:
3636

3737
_duty_cycle: float
3838
_hz: float
39+
chippath: str = "/sys/class/pwm/pwmchip0" # mostly here for testing
3940

4041
def __init__(self, pwm_channel: int, hz: float, chip: int = 0) -> None:
4142

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
setup(
1414
name="rpi_hardware_pwm",
1515
packages=find_packages('.'),
16-
version='0.2.1',
16+
version='0.2.2',
1717
license='OSI Approved :: GNU General Public License v3 (GPLv3)',
1818
description='Control Hardware PWM on the Raspberry Pi',
1919
long_description = long_description,

0 commit comments

Comments
 (0)