Skip to main content

A very basic WLed control library

Project description

This is a very simple WLed controller, which can be used to control a single WLed or multiple WLed.

  • dont call funtions fast after each other

  • this is still a work in progress

setup:
  • from WLedControl import WLedControl

  • create a WLed object with “wled = WLedControl(ip, port(optional))”

Control lights
to turn it on or off or toggle:
use: onOff()

choses are [“on”, “off”, “toggle”]

Control brightness
to get the brightness:

use: get_bri()

to set the brightness:
use: set_bri()

with a value between 0 and 255

Control color
to get the color:
use: get_col()

you will get the RGB values

to set the color:
use: set_col()

with the RGB values or a color name

Control effect
to get the effect:

use: get_fx()

to set the effect:
use: set_fx()

with a value between 0 and 101 or the name of the effect

Control speed
to set speed:
use: set_speed()

with a value between 0 and 255

Exstre funtions:
to get the current status:
use: get_status()

you will get a all information about the current status of WLed

use blink funtion:
use: blink()

color is optional default is red, time is optional default is 2 minimum is 2 exsample: blink(“green”, 3) exsample: blink(“green”) exsample: blink(, 3)

Change Log

0.0.1 (19/04/2020)

  • First Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WLed-Control-1.3.3.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file WLed-Control-1.3.3.tar.gz.

File metadata

  • Download URL: WLed-Control-1.3.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for WLed-Control-1.3.3.tar.gz
Algorithm Hash digest
SHA256 e717bd8ffd0f187483a9ffc8c9f434ddbd999429bdc72a220e76d35f9aa874aa
MD5 3a80301937b8b98f50cac16b613eae44
BLAKE2b-256 91de57ce167a2f37e09cb4424ac48ecc6b2b84c5161fca2ffc4b2d9ff17cc293

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page