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

Subscribers:
460,000
Published on ● Video Link: https://www.youtube.com/watch?v=rRFG32EebNc



Duration: 1:04:08
12,750 views
90


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
-----------------------------------------







Tags:
adafruit
electronics
diy
arduino
hardware
opensource
projects
raspberry
computer
raspberrypi
microcontrollers
limor
limorfried
ladyada
STEAM
STEM