ssd1308: JavaScript, python examples for ssd1308 OLED Display 1.12"

Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Zion Orent
2015-03-23 16:34:45 -04:00
committed by Mihai Tudor Panu
parent 92039921b1
commit 99c59361a7
4 changed files with 202 additions and 1 deletions

View File

@ -8,6 +8,7 @@
$1 = (uint8_t *)(argp);
}
%include "ssd.h"
%include "i2clcd.h"
%{
#include "i2clcd.h"
@ -27,3 +28,8 @@
%{
#include "ssd1327.h"
%}
%include "ssd1308.h"
%{
#include "ssd1308.h"
%}

View File

@ -31,7 +31,6 @@ using namespace upm;
SSD1308::SSD1308 (int bus_in, int addr_in) : I2CLcd (bus_in, addr_in) {
i2Cmd (m_i2c_lcd_control, DISPLAY_CMD_OFF); // display off
printf ("NO_GDB :: DISPLAY_CMD_OFF \n");
usleep (4500);
i2Cmd (m_i2c_lcd_control, DISPLAY_CMD_ON); // display on
usleep (4500);