mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 09:40:36 +00:00
Use Python syntax highlighting (#453)
* Use Python syntax highlighting * Use code directive instead * use python syntax highlighting in the docs * update Programming Language classifers for supported Python versions * use %s instead
This commit is contained in:
committed by
Dave Jones
parent
855377a664
commit
0c9e4a9575
@@ -23,7 +23,9 @@ About
|
||||
=====
|
||||
|
||||
Component interfaces are provided to allow a frictionless way to get started
|
||||
with physical computing::
|
||||
with physical computing:
|
||||
|
||||
.. code:: python
|
||||
|
||||
from gpiozero import LED
|
||||
from time import sleep
|
||||
@@ -37,7 +39,9 @@ with physical computing::
|
||||
sleep(1)
|
||||
|
||||
With very little code, you can quickly get going connecting your components
|
||||
together::
|
||||
together:
|
||||
|
||||
.. code:: python
|
||||
|
||||
from gpiozero import LED, Button
|
||||
from signal import pause
|
||||
|
||||
Reference in New Issue
Block a user