1 Reply Latest reply on Feb 15, 2016 12:21 AM by Vincenze

    Use C++ Libraries with Python

    Keith.M

      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 from here with Python.

       

      Thanks for any help!

        • 1. Re: Use C++ Libraries with Python
          Vincenze

          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 LCD Modules · notro/fbtft Wiki · GitHub

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