PyFoam.Infrastructure.Blink1 module

class PyFoam.Infrastructure.Blink1.Blink1(ticColor=None)[source]

Bases: object

Actual class to connect to a blink-device

fadeToRGB(colorString, time=1, ledn=0)[source]
nrRepeats()[source]

Number of running threads

patterns
play(patternName)[source]

Plays a defined pattern

playRepeated(patternName, interval)[source]

Plays a pattern at regular intervals (starts a new thread and returns the handle)

reloadPatterns()[source]
stop()[source]

Completely reset. Stop all threads and fade to black

stopAllPlays()[source]

Stop all threads that repeatedly play patterns

stopPlay(thread)[source]

Using a thread handle stop a thread

ticToc(color=None)[source]

Alternate color between upper and lower side of the blink. Transition time depends on the times between calls