Brand new, looking for assistance

I am brand new to this and am just looking for programming help. I was to use the Arduino Micro Pro to program 2 switches and one button.

It is for my shifter I use with American Truck Simulator

Where is the best place to start?

here is an example of reading a button connected to a pin:

Thank you, I wish I understood any of that. Is there a more beginner or watered down explanation of this?

Ah i see, yes, you may want to start with the super intro stuff in that case.

start here:

and then work through the examples. I started at page 3 as it is the first code example but there are a couple of pages before that one you can check if you really want to start from the beginning

Take a look into this tutorial:

Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

best regards Stefan

Hello
and welcome.
Post your current sketch to see how we can help.

I have only ever used teensy, so this is new to me.

But this is what I want to accomplish in a nutshell



void setup() {
  // put your setup code here, to run once:
  pinMode(1, INPUT_PULLUP);
  pinMode(2, INPUT_PULLUP);
  pinMode(4, INPUT_PULLUP);
}

void loop() {
  // put your main code here, to run repeatedly:

  //Range Selector Pin 1
  if(digitalRead(1) == LOW)
  {
    Joystick.button(1,1);
  }
  else
  {
    Joystick.button(1,0);
  }

  //Splitter Pin 2
  if(digitalRead(2) == LOW)
  {
    Joystick.button(2,1);
  }
  else
  {
    Joystick.button(2,0);
  }

  
  //Splitter UK/Easy-Jake Pin 4
  if(digitalRead(4) == LOW)
  {
    Joystick.button(3,1);
  }
  else
  {
    Joystick.button(3,0);
  }

}

Any help is definitely appreciated

Have you provided the full program, as when I load it there is a missing library.
Does it compile and upload on your system?

The program shows a functionality.

If some buttons are pressed send joystick-button-commands.

What is the way the PC-software is used without your special-device?
Keyboard?
Is there an original inputdevice?

You have to provide a much more detailed description.

best regards Stefan

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.