How to Install RPi.GPIO Python Library: Difference between revisions

No edit summary
 
Replace <comments/> with <comment-streams />
 
(4 intermediate revisions by 2 users not shown)
Line 35: Line 35:
This will now mean you can use the library within Python.
This will now mean you can use the library within Python.
===== Example Usage =====
===== Example Usage =====
<syntaxhighlight lang="python" line >
<pre>
import RPi.GPIO as GPIO
import RPi.GPIO as GPIO
   
   
Line 57: Line 57:
input_value = GPIO.input(17)
input_value = GPIO.input(17)
GPIO.output(18, GPIO.HIGH)
GPIO.output(18, GPIO.HIGH)
‎</syntaxhighlight>
‎</pre>


==References==
==References==
Line 65: Line 65:


<!--Add review function! -->
<!--Add review function! -->
<comments />
<comment-streams id="main" />


<!--Please choose the  -->
<!--Please choose the  -->