From cadbdfe85fe5fe945439c1167292787c15861f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 16 Feb 2024 19:13:57 +0100 Subject: [PATCH] fixed pin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index 05c5dc8..8dc09fd 100644 --- a/client/main.py +++ b/client/main.py @@ -7,6 +7,7 @@ import time from threading import Thread import paho.mqtt.client as mqtt from getmac import get_mac_address +import board # Replace with your server's IP address and port SERVER_IP = '192.168.0.1' # Change to the actual IP of the PiXelTube Master @@ -16,7 +17,7 @@ SERVER_PORT = 5000 # Change to the port your Flask app is running on wlan_mac_address = str(get_mac_address(interface="wlan0")) # Replace with the GPIO pin connected to the data input of the WS2812B LED strip -LED_STRIP_PIN = 18 +LED_STRIP_PIN = board.D18 global LED_COUNT LED_COUNT = 30 global LEDS_PER_PIXEL