From 47bb463da004575ac28a366617db6a6d3d6f27aa Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 4 Jun 2025 10:00:20 -0500 Subject: [PATCH 1/2] update rtd.yml file Signed-off-by: foamyguy --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 88bca9f..255dafd 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,7 +12,7 @@ sphinx: configuration: docs/conf.py build: - os: ubuntu-20.04 + os: ubuntu-lts-latest tools: python: "3" From ba88388ce36fdfddebfc03b9c359fc3a83bb4077 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Fri, 25 Jul 2025 10:54:49 -0500 Subject: [PATCH 2/2] Use higher frequency values --- README.rst | 2 +- examples/pioasm_7seg.py | 2 +- examples/pioasm_hello.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 06123d2..40ff1b1 100644 --- a/README.rst +++ b/README.rst @@ -75,7 +75,7 @@ Usage Example sm = rp2pio.StateMachine( assembled, - frequency=2000, + frequency=4000, init=adafruit_pioasm.assemble("set pindirs 1"), first_set_pin=board.LED, ) diff --git a/examples/pioasm_7seg.py b/examples/pioasm_7seg.py index f8a7def..495aefc 100644 --- a/examples/pioasm_7seg.py +++ b/examples/pioasm_7seg.py @@ -116,7 +116,7 @@ def __init__(self, first_pin=board.GP9): self._buf = array.array("H", (DIGITS_WT[0] & ~COM_WT[i] for i in range(4))) self._sm = rp2pio.StateMachine( _program.assembled, - frequency=2000, + frequency=4000, first_out_pin=first_pin, out_pin_count=14, auto_pull=True, diff --git a/examples/pioasm_hello.py b/examples/pioasm_hello.py index 7796253..fc8334e 100644 --- a/examples/pioasm_hello.py +++ b/examples/pioasm_hello.py @@ -27,7 +27,7 @@ sm = rp2pio.StateMachine( assembled, - frequency=2000, + frequency=4000, first_out_pin=board.LED, ) print("real frequency", sm.frequency)