Skip navigation

Python programs for input

Python programs for input: Raspberry Pi: GPIO
Python programs for input: Raspberry Pi: GPIO

This video steps through an example of a python program capable of reading a GPIO pin configured for input. The program shows how to set up the pin using RPi.GPIO for input, then shows a loop for reading an input and displaying the result. A second piece of python code is then shown to demonstrated the use of interrupts to read a GPIO pin.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 34m
Show More Show Less
Skills covered in this course
Developer Programming Languages Raspberry Pi

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month