[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

Use xy analog joystick with menus RSS feed
Forum Index » General website discussion
Author Message
tonbor


Joined: Oct 15, 2022
Messages: 4
Offline
I want to use an Arduino Dual-As Xy Joystick Module to switch menus. https://nl.aliexpress.com/item/1005001551592489.html?spm=a2g0o.order_list.0.0.7cc879d2sa2Gio&gatewayAdapt=glo2nld , X and Y analog and digital push. Can not find how to use it. Any help?
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
At the moment there would be a couple of manual steps, but I think with minimal effort I can get the plugin to do everything, I'll have a go at the plugin today and see if I can get it to do back and next as well. I thought it already did but turns out it doesn't.

If everything is contained in the plugin as I expect, you could probably just drop the xml file in the right place once I fix it up and it would work even before the next release comes out.
tonbor


Joined: Oct 15, 2022
Messages: 4
Offline
thanks for the quick response, see the xml when it is working, have I nice weekend!
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
I have created a better analog joystick plugin, and a new example to go with it, they'll be fully released in 2.4.1, but the plugin xml is attached, it may complain if you edit the threshold fields, but it should still generate OK. If you wanted to try it:

1. Before starting, make sure the tcMenu designer is closed.
2. Navigate to the following directory from your home directory, in a command prompt: ~/.tcmenu/plugins/core-display
3. Make a full backup of the current contents of any files you change
4. Replace "analogJoystickInput.xml" with the version attached here.
5. Start designer and the new analog plugin should be available as an input plugin from the code generator.

I'm assuming you've gone through the getting started guide already, if not probably the best start. The analog joystick is chosen during the code generation phase, the screenshot shows what settings I used.
[Thumb - analog-joystick-options.png]
 Filename analog-joystick-options.png [Disk] Download
 Description No description given
 Filesize 53 Kbytes
 Downloaded:  348 time(s)

 Filename analogJoystickInput.xml [Disk] Download
 Description The plugin XML definition to replace
 Filesize 8 Kbytes
 Downloaded:  342 time(s)

tonbor


Joined: Oct 15, 2022
Messages: 4
Offline
thanks, I will try as soon as I receive my new joystick and I have time. I will let you know if it works.
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
There's now no need for the above steps, 2.5.0 was released today, it has the plugin packaged with it.
tonbor


Joined: Oct 15, 2022
Messages: 4
Offline
Thanks it is working smilie
 
Forum Index » General website discussion
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.