2-axis joystick object
Microcontrolled
Posts: 2,461
Here is a nice object for the Parallax 2-axis joystick. The joystick is measured with RC decay and you will need 2 ceramic capacitors (.01uf) to use the object. Operation instructions are inside the code. Have fun!
Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Comments
''This is started in a new cog when Start is called, but to save a cog you can
''call it directly and get the values with get_x and get_y
i := 1
repeat ************* forever
If I call it directly, it will never return. I also don't understand what you are doing with the local variable i.
John Abshier
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Simple Servo Tester, a kit from Gadget Gangster.