Reading pots/sending midi cc’s with Arduino micro.

Hi I have no experience in programming so I’m having a bit of trouble.I have two analogue joysticks (4x 10k pots) that i want to send midi cc messages (2-5) out the USB port of an Arduino micro. Any help would be much appreciated!

Take a look at this example of the Control Surface library:

https://tttapa.github.io/Control-Surface/Doc/Doxygen/d2/d35/CCPotentiometer_8ino-example.html

In your case, you would use the following MIDI output elements:

CCPotentiometer joysticks[] = {
    {A0, 2},  // Analog pin number, CC number
    {A1, 3},
    {A2, 4},
    {A3, 5},
};

Make sure to read the installation instructions and the getting started page first.

Pieter

Thank you! Much appreciated.