Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9881 Discussions

Use C++ Libraries with Python

KMitc3
Novice
1,016 Views

Hi,

How can I use a C++ library for the Edison with Python? I heard that it's possible, but I've been unable to find out how.

Specifically, I want to use the SparkFun OLED Libraries https://github.com/sparkfun/Edison_OLED_Block/tree/master/Firmware/pong/oled from here with Python.

Thanks for any help!

1 Solution
VIvan7
New Contributor III
171 Views

That library is just a rewrite of an Arduino library. Check if there is a Python version and apply changes.

A better approach would be to use a Linux framebuffer. Then you would run a framebuffer kernel driver for your OLED screen and your Python code would write to the framebuffer.

This project maintains OLED framebuffer drivers for the Raspberry Pi https://github.com/notro/fbtft/wiki/LCD-Modules LCD Modules · notro/fbtft Wiki · GitHub

It needs tweaking for the Edison that require programming skills. There were threads here about it.

View solution in original post

1 Reply
VIvan7
New Contributor III
172 Views

That library is just a rewrite of an Arduino library. Check if there is a Python version and apply changes.

A better approach would be to use a Linux framebuffer. Then you would run a framebuffer kernel driver for your OLED screen and your Python code would write to the framebuffer.

This project maintains OLED framebuffer drivers for the Raspberry Pi https://github.com/notro/fbtft/wiki/LCD-Modules LCD Modules · notro/fbtft Wiki · GitHub

It needs tweaking for the Edison that require programming skills. There were threads here about it.

Reply