Go to file
Felipe Martin 47bdfdac79 First work on the cli 2017-01-30 17:15:02 +01:00
luxafor First work on the cli 2017-01-30 17:15:02 +01:00
.gitignore First work on the cli 2017-01-30 17:15:02 +01:00
LICENSE Initial commit 2017-01-17 21:26:08 +01:00
README.md Base luxafor interface to operate with the device 2017-01-17 22:14:56 +01:00
examples.ipynb Added an ipython notebook with examples 2017-01-22 20:35:10 +01:00
pylintrc Added pylintrc 2017-01-18 08:46:56 +01:00

README.md

pyluxafor

Helper interface and CLI to interact with luxafor products.

Usage

from luxafor import luxafor

lux = luxafor.Luxafor()

# Led types
luxafor.Leds.ALL
luxafor.Leds.FRONT
luxafor.Leds.BACK
luxafor.Leds.LEDn # Where n is a number from 1 to 6, refer to the class

# Set a basic color
# From: off, yellow, green, blue, magenta, cyan, red, white
lux.set_basic_color('green')

# Set a static color
lux.set_color(<red>, <green>, <blue>, <led>)

# Fade to a color
lux.fade(<red>, <green>, <blue>, <led>, <speed>)

# Strobe
lux.strobe(<red>, <green>, <blue>, <led>, <speed>, <repeat times>)

# Wave
# Wave types:
# 1: Short wave
# 2: Long wave
# 3: Overlapping short wave
# 4: Overlapping long wave
lux.wave(<red>, <green>, <blue>, <led>, <wave type>, <duration>, <repeat times>)

# Enable predefined pattern
# Patterns from 1 to 8
lux.pattern(<pattern number>, <repeat>)

# Turn off the luxafor
lux.turn_off()