mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
autodoc: Removed autodoc directive from py swig
Since UPM uses doxy2swig, there is no need for the swig interface file autodoc for python. Also, turned on the doxy2swig --quiet switch which cleans up the build log a tiny bit. This removes a redundant chunk of documentation from python modules (per each function). Old: def pH(self, samples=15): +-> """ | pH(DFRPH self, unsigned int samples=15) -> float | | Parameters | ---------- swig| samples: unsigned int | | pH(DFRPH self) -> float | | Parameters | ---------- +-> self: upm::DFRPH * +-> float pH(unsigned int | samples=15) | | Take a number of samples and return the detected pH value. The default | number of samples is 15. | doxy2swig| Parameters: | ----------- | | samples: The number of samples to average over, default 15 | | The pH value detected | """ +-> return _pyupm_dfrph.DFRPH_pH(self, samples) New: def pH(self, samples=15): +-> """ | float pH(unsigned int | samples=15) | | Take a number of samples and return the detected pH value. The default | number of samples is 15. | doxy2swig| Parameters: | ----------- | | samples: The number of samples to average over, default 15 | | The pH value detected +-> """ Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -1,13 +1,11 @@
|
||||
// Include doxygen-generated documentation
|
||||
%include "pyupm_doxy2swig.i"
|
||||
|
||||
|
||||
%module pyupm_apa102
|
||||
|
||||
|
||||
%include "../upm.i"
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
// setLeds
|
||||
|
||||
// setLeds
|
||||
%typemap(in) (uint8_t *colors) {
|
||||
if (PyByteArray_Check($input)) {
|
||||
$1 = (uint8_t*) PyByteArray_AsString($input);
|
||||
@ -16,10 +14,10 @@
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%include "apa102.hpp"
|
||||
|
||||
|
||||
%{
|
||||
|
||||
|
||||
#include "apa102.hpp"
|
||||
%}
|
||||
|
Reference in New Issue
Block a user