File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,32 @@ To add different types outside CircuitPython you need to include them in the int
332
332
The intersphinx_mapping above includes references to Python, BusDevice and CircuitPython
333
333
Documentation
334
334
335
+ When the parameter have two different types, you should reference them as follows::
336
+
337
+
338
+ class Character_LCD:
339
+ """Base class for character LCD
340
+
341
+ :param ~digitalio.DigitalInOut rs: The reset data line
342
+ :param ~pwmio.PWMOut,~digitalio.DigitalInOut blue: Blue RGB Anode
343
+
344
+ """
345
+
346
+ def __init__(self, rs, blue):
347
+ self._rc = rs
348
+ self.blue = blue
349
+
350
+
351
+ Renders as:
352
+
353
+ .. py :class :: Character_LCD(rs, blue)
354
+ :noindex:
355
+
356
+ Base class for character LCD
357
+
358
+ :param ~digitalio.DigitalInOut rs: The reset data line
359
+ :param ~pwmio.PWMOut,~digitalio.DigitalInOut blue: Blue RGB Anode
360
+
335
361
336
362
param_name
337
363
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments