Raspberry Pi Beginner Guide (wiringPi Tutorial for Linux BASH Shell and C, GPIO LED Blink)
----------------------------------------------------------------------------------------------------------------------------
March 2022 update:
If you are using Raspberry Pi 4, you may receive an error when attempting to use the gpio command. Follow this guide to fix it: http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
Use the following command to compile the program if you get a bunch of 'undefined reference...' errors when attempting to compile the code:
gcc -Wall blink.c -lwiringPi -o blink
----------------------------------------------------------------------------------------------------------------------------
This tutorial shows how to get started with Raspberry Pi GPIO using the wiringPi library. You will be shown the full process starting with a simple circuit build, Linux shell commands needed all the way to a fully-functional C program which will blink LEDs. I spend considerable time explaining how to safely deactivate GPIO ports after use to avoid damaging them.
Full code download: https://github.com/mheidenreich/wiringPiBasics
If you are just starting out with the Raspberry Pi this is the tutorial for you, even if you have not programmed in C before. However, making more advanced projects requires a deeper knowledge of C. In most cases I recommend Python, which is a lot more friendly to beginners. The gpio shell command always comes in handy.
0:00 Intro
0:45 The Circuit
2:15 Working with BASH Shell
4:22 Basic C Program
5:22 C Program Compilation Using gcc
7:08 C Program Improved
9:11 Running the Program in the Background
9:56 Using BCM Numbering in C
10:30 Wrap Up with Full Code
Disclaimer:
"Raspberry Pi" and the distinct logo are a trademark of the Raspberry Pi Foundation.
Music: Flames by Dan Henig, YouTube Music Library
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Raspberry Pi Beginner Guide (wiringPi Tutorial for Linux BASH Shell and C, GPIO LED Blink)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.