Jump to content
Why become a member? ×

themorb

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by themorb

  1. On 19/01/2020 at 10:50, stoo said:

      Got this via PM, but may as well reply here in case it's of use to anyone else

    Hiya,

    The way I did it has data going both ways between Nextion and Arduino...

    I wanted to setup the Nextion so that I didn't need to upload a new HMI file whenever I wanted to change the footswitch functions - I have the USB from the Arduino accessible from the back of my controller, but to reflash the Nextion, I would need to remove it from the unit.

    So... the Arduino looks up which page it's currently set to, and then updates the labels on the Nextion to match.

    Each of the footswitch labels is 2x NexText covered by 1x NexHotspot so I could have 2 lines of text acting as one button. If you only need one line of text, then a NexButton is simpler... and I used those for the Page Up / Page Down buttons.

    The functions (on the Arduino) attached to each of these buttons look up which action they need to trigger depending on 

    -footswitch#

    -current menu page#

    -press type (short/long/double)

    and then sends that action to the MIDI port.

    It's probably a bit of a clumsy implementation but it seems to work pretty well.

    If you want to look through my code and see what I've done, it's all up at https://github.com/stoonoon/hxsMidiSwitchTouch - I haven't commented it as thoroughly as I did for the earlier version, but hopefully it'll be of use... happy to answer questions if I can.

    Cheers,

    Stoo

    Hi Stoo 
    I didn't check you swap to arduino mega. Now the challenge :
    Do you belive it is possible to realize this controller fitting your code on Nano ( with Nextion but without Expression Pedal)?

    The final .ino file :Just  copying and pasting ....: 01_includes 02_globals (in this order)? I get a lot of errors (simulating a Mega board)

    What about single_double_long file? Do I past it into the ino?

    What about the booting page on nextion?

    Thx for your time

×
×
  • Create New...