From 11dfb71845c81a58085f645c7486f23421b7f9c2 Mon Sep 17 00:00:00 2001 From: Landry Norris <37489471+LandryNorris@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:55:04 -0500 Subject: [PATCH] Change pin handling to use 64-bit masks to support RP2350B --- src/PicoTM1637.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PicoTM1637.c b/src/PicoTM1637.c index e6b3e66..9f97e40 100644 --- a/src/PicoTM1637.c +++ b/src/PicoTM1637.c @@ -65,9 +65,9 @@ void TM1637_init(uint clk, uint dio) { sm_config_set_sideset_pins(&smConfig, clkPin); - uint32_t both_pins = (1u << clkPin) | (1u << dioPin); - pio_sm_set_pins_with_mask(pio, sm, both_pins, both_pins); - pio_sm_set_pindirs_with_mask(pio, sm, both_pins, both_pins); + uint64_t both_pins = (1uLL << clkPin) | (1uLL << dioPin); + pio_sm_set_pins_with_mask64(pio, sm, both_pins, both_pins); + pio_sm_set_pindirs_with_mask64(pio, sm, both_pins, both_pins); sm_config_set_out_pins(&smConfig, dioPin, 1); sm_config_set_set_pins(&smConfig, dioPin, 1);