mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Highlight the right line in rgbled_pot_2 recipe
This commit is contained in:
@@ -399,7 +399,7 @@ Alternatively, the following example is identical, but uses the
|
|||||||
:attr:`~SourceMixin.source` property rather than a :keyword:`while` loop:
|
:attr:`~SourceMixin.source` property rather than a :keyword:`while` loop:
|
||||||
|
|
||||||
.. literalinclude:: examples/rgbled_pot_2.py
|
.. literalinclude:: examples/rgbled_pot_2.py
|
||||||
:emphasize-lines: 8
|
:emphasize-lines: 9
|
||||||
|
|
||||||
Please note the example above requires Python 3. In Python 2, :func:`zip`
|
Please note the example above requires Python 3. In Python 2, :func:`zip`
|
||||||
doesn't support lazy evaluation so the script will simply hang.
|
doesn't support lazy evaluation so the script will simply hang.
|
||||||
|
|||||||
Reference in New Issue
Block a user