This Python script allows you to display GIF animations on WLED-managed LEDs. The script processes each frame of the GIF, increases the contrast and sends the data to the WLED controller.
- Python 3.x
- Library
Pillow
for the handling of images - Library
socket
for network communication
-
Install the required libraries:
pip install Pillow
-
Clone repository:
-
Set the IP address of your WLED controller:
WLED_IP = "192.168.88.55" # 👈
-
Path to GIF file.:
GIF_FILE_PATH = r"file.gif" # 👈
-
Adjust contrast gain level:
You can adjust the level of contrast enhancement by changing the value of the variableIMG_ENHANCE_LV
.
IMG_ENHANCE_LV = 2 # 👈 Dostosuj poziom kontrastu
To run the script, execute the following command:
python skrypt.py