Powered by Invision Power Board CaseModding.de.vu Radio Nachteule - Eure Augen werden Ohren machen


  Reply to this topicStart new topicStart Poll

> ASUS G-Series LED controller, A plugin for ASUS laptops...
Predator_MF
Posted: May 13, 2008 10:37 am
Quote Post



*

Group: Members
Posts: 36
Member No.: 2056
Joined: February 18, 2006



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),'m:ss')' <> '  
%Format.Time(%Mul(%WinAmp.TrackLength(),1000),'mm:ss')
%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 File ( Number of downloads: 3678 )
Attached File  GLED_Plugin_1.1.zip__
PMEmail PosterICQ
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 





[ Script Execution time: 0.0507 ]   [ 12 queries used ]   [ GZIP Enabled ]