Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KMitc3
Novice
921 Views

Use C++ Libraries with Python

Jump to solution

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!

Tags (1)
1 Solution
VIvan7
New Contributor III
76 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
77 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

Reply