1

For exmaple, I look at the page for digitalWrite and all I get is this for the signature:

digitalWrite(pin, value)

No return value type, no paramater type, nothing.

Instead, in a seperate section it says

Returns
Nothing

And then it says

Parameters
pin: the Arduino pin number.
value: HIGH or LOW.

What is "value"? An int? uint8_t? bool? Why is the API written in such a weird ambigious way?

I would expect something like

void digitalWrite(uint8_t pin, uint8_t value)

Like I am used to from other "proper" API documentations.

user84874
  • 19
  • 1

0 Answers0