Created
March 15, 2012 04:17
-
-
Save poemdexter/2041837 to your computer and use it in GitHub Desktop.
G110 keyboard script to make the colors flicker
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
function OnEvent(event, arg) | |
if (event == "M_PRESSED" and arg == 3) then | |
for i=0,100,1 do | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
end | |
end | |
end | |
function color(r, g, b, speed) | |
SetBacklightColor(r,g,b,"kb"); | |
Sleep(50) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment