RUVIDEO
Поделитесь видео 🙏

Raspberry Pi & Python 3 code with Tony D! @adafruit #LIVE

Live stream to http://twitch.tv/adafruit showing updated Python software libraries that now support Python 3 for the Raspberry Pi and other small Linux computers. Looks at a few common issues you can run into when porting code to Python 3 and how to overcome them.

Note the Python 3 issue with the WS2801 library at the end was actually just forgetting to install the RPi.GPIO library under Python 3. On the Pi you can run these commands to install the library for Python 3:
sudo apt-get install python3-pip
sudo pip3 install rpi.gpio
Then the WS2801 library or others that use GPIO will work great!

Links and products mentioned in the video:
- Adafruit Raspberry Pi Python code repository: https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code
- Cheat Sheet: Writing Python 2-3 Compatible Code: http://python-future.org/compatible_idioms.html
- Official Python porting 2 to 3 docs: https://docs.python.org/3/howto/pyporting.html
- Python Six library: https://pythonhosted.org/six/
- Adafruit pure python I2C/smbus library: https://github.com/adafruit/Adafruit_Python_PureIO
- Raspberry Pi & Python I2C Deep Dive (goes into rationale for the pure python I2C library): https://www.youtube.com/watch?v=kxaFbDY-wH0
- MCP9808 precision temperature sensor: https://www.adafruit.com/products/1782?utm_source=youtube&utm_medium=videodescrip&utm_campaign=raspi
- MAX31855 thermocouple sensor: https://www.adafruit.com/products/269?utm_source=youtube&utm_medium=videodescrip&utm_campaign=raspi
- WS2801 LED lights: https://www.adafruit.com/products/738?utm_source=youtube&utm_medium=videodescrip&utm_campaign=raspi

Acknowledgements:
- Music: bartlebeats
- Intro shuttle footage: NASA
- Intro fonts: Typodermic
- Intro inspiration: Mr. Wizards's World
- Matrix background: cool-retro-term & cmatrix

-----------------------------------------
Visit the Adafruit shop online - http://www.adafruit.com

Subscribe to Adafruit on YouTube: http://adafru.it/subscribe

Join our weekly Show & Tell on G+ Hangouts On Air: http://adafru.it/showtell

Watch our latest project videos: http://adafru.it/latest

New tutorials on the Adafruit Learning System: http://learn.adafruit.com/

Music by bartlebeats: http://soundcloud.com/bartlebeats
-----------------------------------------

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Raspberry Pi & Python 3 code with Tony D! @adafruit #LIVE», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.