This shows you the differences between two versions of the page.
|
userfunctions [2010/02/03 13:18] wikiops |
userfunctions [2010/02/04 06:24] (current) wikiops |
||
|---|---|---|---|
| Line 85: | Line 85: | ||
| Pass the number of arguments your function requires, and make it negative if there is no return value. Here are some examples of argument signatures for some well-known functions, to help you see the pattern: | Pass the number of arguments your function requires, and make it negative if there is no return value. Here are some examples of argument signatures for some well-known functions, to help you see the pattern: | ||
| - | * numvar millis(void) has a signature of 1 | + | * numvar millis(void) has a signature of 0 |
| * void delay(ulong) has a signature of -1 | * void delay(ulong) has a signature of -1 | ||
| * numvar dr(pin) has a signature of 1 | * numvar dr(pin) has a signature of 1 | ||
| Line 91: | Line 91: | ||
| ---- | ---- | ||
| + | |||
| ==== The Function Handler Argument ==== | ==== The Function Handler Argument ==== | ||