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)