Source: https://mokxi.com/errors/too-many-arguments-to-function
Updated: 2026-11-16

Home / Errors
Arduino build error

# error: too many arguments to function 'void blink()'

The call passes more values than the function declares. Count the parameters in the function and the values in the call.

Try the fixed sketch in Mokxi See the causes

- Build error
- 2 common causes
- Seen 487 times in failed builds on Mokxi in the 30 days to November 16, 2026.

The message

## What the Arduino IDE prints

Output window

Either remove the extra value or add a parameter to the function.

Mokxi's compiler, clang, words it as no matching function for call, or too many arguments to function call.

Causes

## The 2 usual causes with the fix

### 1The function takes no parameters and was given one

Add the parameter to the function so it can use the value.

Broken

Fixed

Mokxi’s build tab says: blink is called with values it does not take.

Try this fix in Mokxi

### 2A comma was typed where a decimal point belongs

In C++ a comma separates arguments. 2,5 is two numbers, 2 and 5. Write 2.5 for a decimal.

Broken

Fixed

Mokxi’s build tab says: show is called with values it does not take.

Try this fix in Mokxi

FAQ

## Questions and answers

### What does "too many arguments" mean?

The call has more values between the brackets than the function was declared to take.

### And "too few arguments"?

The opposite: values are missing. Add them, or give the function parameters default values.

### Does the order of arguments matter?

Yes. They are matched to the parameters by position, so the first value goes to the first parameter.

Next

## More errors and the longer guide

- error: no matching function for call to 'digitalWrite(int)'
- error: call of overloaded 'show(double)' is ambiguous

Every Arduino compile error All Arduino errors
