wow this would be superawesome
Using this module it is possible to get the G15 LED soft keys, and write to its LCD screen
I have tried to get this to work with E2 but failed.
But I still love the idea of super easy writing to the LCD.
Could somebody please try to get this to work?
I own a G15, and there is an emulator if for testing.
[eXs] TP Hunter NL: Is there something you didn't make?
Black Phoenix: you?
with the lack of people that actually own a G15, i doubt there would be anyone willing/able to code it let alone test it.
still, would be pretty cool.
(i don't own a G15 if you are wondering)
You only know how awesome it whould be if you own one.
I am going to give it another try, if there is any progress I'll post it here.
[eXs] TP Hunter NL: Is there something you didn't make?
Black Phoenix: you?
i have a habit of keeping my keyboard out of view, so i generally don't look at it.
Needless to say, a screen at the back of my keyboard is not at all useful, for me at least.
Progress, I got the module to work, and I am now working on the E2 functions, but I keep running into a stack error.
When I load:Code:Stack Error: 1 values left on Stack! 0> Type: nil - Value: '(null)'
Code:require("g15") registerFunction("g15CreateLCD", "s", "", function(self,args) local op1 = args[2] local rv1 = op1[1](self,op1) g15.createLCD(false, rv1) end) registerFunction("g15Button", "n", "n", function(self,args) local op1 = args[2] local rv1 = op1[1](self,op1) if (g15.isbuttonpressed(rv1)) then return 1 else return 0 end end)
UPDATE: I got button polling and drawing a pixel to work
UPDATE: Text printing done
Last edited by Hunter234564; 03-22-2009 at 06:20 AM.
[eXs] TP Hunter NL: Is there something you didn't make?
Black Phoenix: you?
Yes, but there are so many functions, I need to take a break and then I start coding all functions properly.
EDIT: Fancy stuffs
Results into:Code:g15addText(1,0,1,1,120,1) g15setText(1,"Hello wiremod.com!")
![]()
Last edited by Hunter234564; 03-22-2009 at 08:41 AM.
[eXs] TP Hunter NL: Is there something you didn't make?
Black Phoenix: you?
Note that those functions only work in singleplayer.
Bookmarks