st7735: expose base class python wrappers too and avoid name collision

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2016-01-29 16:39:25 -08:00
parent 2d68d707f6
commit 1786017006
2 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,12 @@
%include "../upm.i"
%feature("autodoc", "3");
%rename("printString") print(std::string msg);
%include "gfx.h"
%{
#include "gfx.h"
%}
%include "st7735.h"
%{

View File

@ -33,7 +33,7 @@
#include <mraa/gpio.hpp>
#include <mraa/spi.hpp>
#include <gfx.h>
#include "gfx.h"
#define INITR_GREENTAB 0x0
#define INITR_REDTAB 0x1