eboled: updated python sample and function description for refresh()

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2016-01-29 16:55:56 -08:00
parent 0f548d367b
commit 3522e4ee8f
2 changed files with 4 additions and 6 deletions

View File

@ -29,10 +29,11 @@ import pyupm_i2clcd as lcdObj
lcd = lcdObj.EBOLED();
lcd.clear();
lcd.setCursor(2, 0);
lcd.setCursor(10, 15);
lcd.write("Hello");
lcd.setCursor(3, 5);
lcd.setCursor(30, 15);
lcd.write("World!");
lcd.refresh();
print "Sleeping for 5 seconds..."
time.sleep(5)

View File

@ -128,11 +128,8 @@ namespace upm
~EBOLED();
/**
* Draw the buffer to screen, see examples/python/make_oled_pic.py for an
* explanation on how the pixels are mapped to bytes.
* Draw the buffer to screen.
*
* @param data the buffer to write
* @param bytes the number of bytes to write
* @return result of operation
*/
mraa::Result refresh();