mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
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:
parent
0f548d367b
commit
3522e4ee8f
@ -29,10 +29,11 @@ import pyupm_i2clcd as lcdObj
|
|||||||
lcd = lcdObj.EBOLED();
|
lcd = lcdObj.EBOLED();
|
||||||
|
|
||||||
lcd.clear();
|
lcd.clear();
|
||||||
lcd.setCursor(2, 0);
|
lcd.setCursor(10, 15);
|
||||||
lcd.write("Hello");
|
lcd.write("Hello");
|
||||||
lcd.setCursor(3, 5);
|
lcd.setCursor(30, 15);
|
||||||
lcd.write("World!");
|
lcd.write("World!");
|
||||||
|
lcd.refresh();
|
||||||
print "Sleeping for 5 seconds..."
|
print "Sleeping for 5 seconds..."
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
|
@ -128,11 +128,8 @@ namespace upm
|
|||||||
~EBOLED();
|
~EBOLED();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw the buffer to screen, see examples/python/make_oled_pic.py for an
|
* Draw the buffer to screen.
|
||||||
* explanation on how the pixels are mapped to bytes.
|
|
||||||
*
|
*
|
||||||
* @param data the buffer to write
|
|
||||||
* @param bytes the number of bytes to write
|
|
||||||
* @return result of operation
|
* @return result of operation
|
||||||
*/
|
*/
|
||||||
mraa::Result refresh();
|
mraa::Result refresh();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user