Skip to content

Raspbian Jessie image with Python 3 installed. It also installs utilties to help working with I2C.

Notifications You must be signed in to change notification settings

jbrisbin/rpi-python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Raspberry Pi Python 3 Image

This image provides a basic Raspbian Jessie image with Python 3 installed. It also installs utilties to help working with I2C.

Pre-requisites

Installing HypriotOS on your Raspberry Pi using the flash utility and installing an image from the hypriot releases page is a recommneded way to get your Pi ready to read data from your Enviro pHAT using Docker and Python. These instructions assume you're running at least version 1.2.0 of HypriotOS (which includes Docker 1.13) and that you'll be using Python 3.

Note: You can also use a bare-bones Raspbian and install Docker separately.

Set up I2C

To use this Docker image, you need to ensure that the Pi is configured for I2C. That can be accomplished fairly easily by ensuring that libffi-dev and i2c-tools are installed.

sudo apt-get install -y libffi-dev i2c-tools

You also need to update a couple files on the Pi to ensure the kernel modules are loaded to enable I2C.

cat <<END >>/etc/modules
i2c-bcm2708
i2c-dev
END

cat <<END >>/boot/config.txt
dtparam=i2c1=on
dtparam=i2c_arm=on
END

Once you reboot your Pi, you should have I2C working. You can verify that the Pi sees your I2C bus by using the i2cdetect utility.

sudo i2cdetect -l

You should see the output of that command list your I2C bus.

About

Raspbian Jessie image with Python 3 installed. It also installs utilties to help working with I2C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published