mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +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.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)
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user