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

Published: 21 April 2016
on channel: Adafruit Industries
12,829
89

Live stream to   / 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-...
Cheat Sheet: Writing Python 2-3 Compatible Code: http://python-future.org/compatible_i...
Official Python porting 2 to 3 docs: https://docs.python.org/3/howto/pypor...
Python Six library: https://pythonhosted.org/six/
Adafruit pure python I2C/smbus library: https://github.com/adafruit/Adafruit_...
Raspberry Pi & Python I2C Deep Dive (goes into rationale for the pure python I2C library):    • Raspberry Pi & Python I2C Deep Dive w...  
MCP9808 precision temperature sensor: https://www.adafruit.com/products/178...
MAX31855 thermocouple sensor: https://www.adafruit.com/products/269...
WS2801 LED lights: https://www.adafruit.com/products/738...

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:   / bartlebeats  
-----------------------------------------


Watch video Raspberry Pi & Python 3 code with Tony D! @adafruit online without registration, duration hours minute second in high quality. This video was added by user Adafruit Industries 21 April 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,82 once and liked it 8 people.