From a65e6800493a675fdd46c65da3d5512fa97c0dac Mon Sep 17 00:00:00 2001 From: Tanaes Date: Sat, 6 Aug 2022 12:02:13 -0400 Subject: [PATCH] pin naming --- dotstar_watcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotstar_watcher.py b/dotstar_watcher.py index 93c228c..fcbe1be 100644 --- a/dotstar_watcher.py +++ b/dotstar_watcher.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# import board +import board import asyncio import adafruit_dotstar import config @@ -100,8 +100,8 @@ async def main(): dotstar_clk = config.gpio_dotstar_clk = 19 # pin 35 dotstar_dat = config.gpio_dotstar_dat = 13 # pin 33 - pixels = adafruit_dotstar.DotStar('D%s' % dotstar_clk, - 'D%s' % dotstar_dat, + pixels = adafruit_dotstar.DotStar(getattr(board, 'D%s' % dotstar_clk), + getattr(board, 'D%s' % dotstar_dat), dotstar_num) substrip_len = ceil(dotstar_num/3.0)