9 years, 8 months ago.

mbed api code documentation

AnalogIn.h

35 AnalogIn temperature(p20);

55 AnalogIn(PinName pin)

these two lines demonstate the inconsistency in documentation!

similarly DigitalIn lines 33 & 35, DigitalOut lines 31 & 48

Has a major rewrite taken place? If so will the documention ever catch up?

the second one is ctor declaration, the first one is object definition.

posted by Martin Kojtal 12 Aug 2014

1 Answer

9 years, 8 months ago.

That isn't an inconsistency, that is the C++ syntax. The top one shows how you use it, the bottom one is how the class is defined.