|
2014-10-09
, 19:52
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#342
|
|
2014-10-10
, 13:03
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#343
|
|
2014-10-10
, 18:19
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#344
|
|
2014-10-10
, 19:52
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#345
|
|
2014-10-13
, 10:09
|
Posts: 123 |
Thanked: 268 times |
Joined on Dec 2009
@ Helsinki, Finland
|
#346
|
|
2014-10-14
, 11:17
|
Posts: 123 |
Thanked: 268 times |
Joined on Dec 2009
@ Helsinki, Finland
|
#347
|
|
2014-10-14
, 12:27
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#348
|
The Following 8 Users Say Thank You to kimmoli For This Useful Post: | ||
|
2014-10-22
, 11:34
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#349
|
|
2014-10-22
, 12:03
|
|
Posts: 319 |
Thanked: 221 times |
Joined on Jan 2010
@ Finland
|
#350
|
dbus-send --system --print-reply --dest=com.kimmoli.toholed / com.kimmoli.toholed.draw
Following arguments are supported:
Lock to drawing mode: string:"lock" boolean:true/false string:"appname"
Lock is released every 30 sec, so you need to refresh lock.
Clear screen: string:"clear"
Invert display or change to normal: string:"invert" boolean:true/false
Draw single pixel at x,y: string:"pixel" int32:x int32:y {int32:color}
Note: color is optional: 0=black, 1=white, default is white.
Draw circle, center x,y with r radius: string:"circle" int32:x int32:y int32:r {int32:color}
Draw line from x0,y0 to x1,y1: string:"line" int32:x0 int32:y0 int32:x1 int32:y1 {int32:color}
OBSOLETE in 0.3.0 Draw bitmap to x0,y0: string:"bitmap" int32:x int32:y array:byte:0x42,0x4d,...
Draw time text with chars "1234567890:" and space to x,y: string:"time" int32:x int32:y string:"::1"
Draw numbers with small font to x,y: string:"smalltext" int32:x int32:y string:"123%"
Draw analog clock: string:"clock" int32:hours int32:minutes {boolean:clear}
clear can be used for non-flickering update of display
and last one: string:"derp"
Picture drawing interface :
dbus-send --system --print-reply --dest=com.kimmoli.toholed / com.kimmoli.toholed.drawPicture int32:x int32:y bytearray:data
This will accept picture, PNG, BMP, JPG as data payload.
Color pictures will be automatically reduced to 2-bits with rule qGray()>127.
Supports also transparent. Pixel is drawn only if qAlpha()>127
e.g. 2miich app uses this, it draws mono-png images and sends them over dbus.
see https://github.com/inzanity/2miich/b...rc/oledify.cpp
and https://github.com/inzanity/2miich/b...esPage.qml#L98
and https://github.com/inzanity/2miich/b...rs/Toholed.qml
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
Last edited by kimmoli; 2014-10-24 at 08:30.