Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/p/i/PiGlow-HEAD/Examples/cpu.py   PiGlow(Download)
 
    if cpu < 5:
        piglow.red(20)
    elif cpu < 20:
        piglow.red(20)
        piglow.orange(20)
    elif cpu < 40:
        piglow.red(20)
        piglow.yellow(20)
    elif cpu < 60:
        piglow.red(20)
        piglow.orange(20)
        piglow.yellow(20)
        piglow.green(20)
    elif cpu < 80:
        piglow.red(20)

src/p/i/PiGlow-HEAD/Examples/cycle.py   PiGlow(Download)
    piglow.orange(10)
    sleep(0.1)
    piglow.red(10)
    sleep(0.1)
    piglow.red(0)

src/p/i/PiGlow-HEAD/Examples/test.py   PiGlow(Download)
 
val = input("Red: ")
piglow.red(val)
 
val = input("All: ")