A special thanks to Carl Kenner, who wrote Glovepie
First, follow my other instructable to sync your wiimote to your PC
Download and Install Glovepie on your PC - I am using version .30
Now, basically this instructable is about how to use the programming language that glovepie uses as input (for beginners to software programming and such)
if you know how to write software, a quick look at this Glovepie Wiki is all you might need
--before i started using this app, i had virtually no experience or knowledge of programming. the best way to learn is to look at already written scripts, and you can pick up on how to write them - thats what i did
pics won't exactly help here, so just follow the directions, and if you need more help, just send a comment and i will be happy to help asap
Remove these ads by
Signing UpStep 1General Basics and Structure
In code language, that would look like:
if - followed by cause
- - - - - effect (can be many)
endif - equivalent of period
Example -- if i wanted the first light on the wiimote to go on when i pressed A --
if wiimote.a
wiimote.led1 = true
endif
other ways to write this are:
if wiimote.a then wiimote.led1 = true
or
wiimote.a = wiimote.led = true
you might notice that even if you let go of A, the led stays on, because its value was set to true.
if you want it to only go on while pressing the button, use the else command like this -- incorporated into the first code --
if wiimote.a
wiimote.led1 = true
else
wiimote.led1 = false
endif
that would be a double cause/effect and the light would work that way because a "counter" is provided for when you let go of the button
Anything on the wiimote is addressed in glovepie as wiimote._
the key list for use is as follows: (the power button is not and can't be used here)
Wiimote. :
DPAD :
UP
DOWN
LEFT
RIGHT
A
B
MINUS
HOME
PLUS
ONE
TWO
Refer to the wiki for info on the lights and other stuff you can do
| « Previous Step | Download PDFView All Steps | Next Step » |
3
comments
|
Add Comment
|
randofo
says:
![]() |
Add Comment
|







































