ProdBoard Support

Example Code

Examples for using the ProdBoard are here.

In order to use the examples, you will need to install the following dependent libraries.

Python GPIO

sudo apt-get install python-dev python-rpi.gpio

Luma.OLED Python Library – For OLED display

ProdBoard using i2c OLED display with SH1106 driver.

Library Info: https://pypi.python.org/pypi/luma.oled
Install Instructions: http://luma-oled.readthedocs.io/en/latest/install.html

More display examples from Luma.OLED: https://github.com/rm-hull/luma.examples

To run the examples from Luma.OLED, dont forget to use “-d sh1106” option.

python pi_logo.py -d sh1106

LIRC library

LIRCDemo.py required LIRC to be installed.

To be able to run the example, do the following (assuming Raspbian):

  • Install LIRC

sudo apt-get install lirc

  • In /boot/config.txt, add/edit the following line
dtoverlay=lirc-rpi,gpio_in_pin=17,gpio_out_pin=22
  • Setup for i2c communications with display and LIRC for infrared in /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with “#” are ignored.
i2c-dev
lirc_dev
lirc_rpi gpio_in_pin=17
  • Install LIRC python library: https://pypi.python.org/pypi/python-lirc/
#For python 3.x
sudo apt-get install python3-lirc

#For python 2.x
sudo apt-get install python-lirc