Merge Commands ????

Hello, how can I merge commands? for example, LED HIGH, delay(…) and LED LOW to the command LED_on_off

thanks!

You mean create a function? You might want to review some C/C++ language tutorials. Here is one specifically for functions:

Function

Always show us your code so we don’t have to guess.

Use CTRL T to format your code.
Attach your ‘complete’ sketch between code tags, use the </> icon in the posting menu.
[code]Paste your sketch here[/code]

MaditaSvenja:
Hello, how can I merge commands? for example, LED HIGH, delay(...) and LED LOW to the command LED_on_off

You need to describe the requirement more clearly.

Where are the commands coming from?
What exactly do you want to happen?

If you have a program that is not doing what you want then please post the program and tell us in detail what it actually does and what you want it to do that is different. It will make it much easier to focus on the parts you need help with rather than wasting time on things that you can do.

...R

MaditaSvenja:
Hello, how can I merge commands? for example, LED HIGH, delay(...) and LED LOW to the command LED_on_off

void LED_on_off(byte PinNumber, unsigned long DelayMilliseconds)
{
  digitalWrite(PinNumber, HIGH);
  delay(DelayMilliseconds);
  digitalWrite(PinNumber, LOW);
}