Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 1 month 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?
1 Answer
11 years, 1 month 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.
the second one is ctor declaration, the first one is object definition.
posted by Martin Kojtal 12 Aug 2014