Created
March 16, 2014 19:01
-
-
Save jasalt/9588133 to your computer and use it in GitHub Desktop.
Thinkpad acpi-linux Thinklight® strobo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
sleeptime = 0.03 | |
def cycle_light(): | |
while True: | |
os.system("echo 0 > /sys/class/leds/tpacpi\:\:thinklight/brightness") | |
time.sleep(sleeptime) | |
os.system("echo 1 > /sys/class/leds/tpacpi\:\:thinklight/brightness") | |
time.sleep(sleeptime) | |
cycle_light() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment