Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ASUS G-Series LED controller
#1
ASUS G-Series LED Controller
by Predator_MF
------------------------------------------

1. Description:

Use this plugin to control ASUS G-Series (G1S, G2S or others) LEDs.

2. Commands:

The first parameter must be "LED".
The second parameter is the number of the LED to control:
0 = Mail LED
1 = Touchpad LED
2 = Gaming LED

The third parameter is the command
0 = OFF
1 = ON


3. Examples:

To turn ON the Mail LED:
%UsePlugin('GLED\GLED.dll',LED, 0, 1)

To turn ON the Touchpad LED:
%UsePlugin('GLED\GLED.dll',LED, 1, 1)

To turn ON the Gaming LED:
%UsePlugin('GLED\GLED.dll',LED, 2, 1)

To turn the LEDs OFF in the examples above, use 0 as the last parameter.




4. Installation:

Extract the acrhive to LCDHype\plugins folder,
restart LCDHype and you should see the plugin in the plugins section of LCDHype
(by the name of ASUS G-Series LED Controller).

5. Change History

- 1.1: 64-bit compatible, thanks to Oewyn
- 1.0: Initial release

Example script #1 (Blinking LED):
CODE

***********************************
*   ASUS G-Series Blinking GLED   *
*          by Predator_MF         *
***********************************
#Header
/insert header code here/
%Common.SetPriority(100) / interval between blinks /
%DefVar(state=0)
#EndHeader

#GfxMode
/insert gfxmode script code here/
%UsePlugin('GLED\GLED.dll','LED', 2, %state()/status/)
%If(%state() = 1)
Then{%Assign(state, 0)}
Else{%Assign(state, 1)}
#EndGfxMode


Example script #2 (Bass GLED):
CODE

***********************************
*   ASUS G-Series Bass GLED   *
*          by Predator_MF         *
***********************************
#Header
%LCD.Brightness(180)
%CleanUp.ClearVRAM()
%LCD.Gfx_SetTextArea(0,0,139,31)
%Common.SetPriority(18)
#EndHeader

#GfxMode
%KeyCheck()
/1. Zeile: Interpret und Titel/
%LCD.Gfx_SetFont('Courier New',8,1)
%Format.Offset(Vertical,-4)
%Param.EnableScrolling(Horizontal,Ticker,1,140)
"***   "%WinAmp.Artist()" - "%WinAmp.Title()"   "
%Common.CreateNewLine()

/2. Zeile: Bargraph Trackpos/
%LCD.Gfx_SetOverlayMode()
%Format.Bar(Horizontal,127,1,0,%WinAmp.TrackLength(),
           %WinAmp.TrackPos(),1,0,0,10)

/3. Zeile: Trackpos - Tracklength/
%LCD.Gfx_SetFont('Terminal',8,1)
%Format.Offset(Vertical,11)
%Format.Offset(Horizontal,3)
%Format.Time(%Mul(%WinAmp.TrackPos(),1000),'mConfuseds')' <> '  
%Format.Time(%Mul(%WinAmp.TrackLength(),1000),'mmConfuseds')
%Common.CreateNewLine()

/4. Spectrum Analyser/
%WinAmp.SpecAnalyzer(FFT,PeakedBars,20,17,40,1,0.4,2,1,80,15)

%If( (%Graph.GetPixel(80, 16)>0))
   Then{%UsePlugin('GLED\GLED.dll',LED, 2, 1)}
   Else{%UsePlugin('GLED\GLED.dll',LED, 2, 0)}
%If( (%Graph.GetPixel(126, 24)>0) OR (%Graph.GetPixel(123, 24)>0))
   Then{%UsePlugin('GLED\GLED.dll',LED, 1, 1)}
   Else{%UsePlugin('GLED\GLED.dll',LED, 1, 0)}

#EndGfxMode


Please rename the file to GLED_Plugin.zip after downloading it.


Attached Files
.zip__   GLED_Plugin_1.1.zip__ (Size: 26,08 KB / Downloads: 5.500)


Forum Jump:


Users browsing this thread: 1 Guest(s)