summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2021-02-21 14:45:08 -0600
committercheapie <no-email-for-you@example.com>2021-02-21 14:45:08 -0600
commita5ca8f19b77d03f4897fe64ea70f3c9f7365034e (patch)
tree1daea979bb382948f678a46a99a1a6afac955a66 /docs
parentf62c9932b4b4fc9c74555448c8321c5cdd49edb6 (diff)
downloaddigistuff-a5ca8f19b77d03f4897fe64ea70f3c9f7365034e.tar
digistuff-a5ca8f19b77d03f4897fe64ea70f3c9f7365034e.tar.gz
digistuff-a5ca8f19b77d03f4897fe64ea70f3c9f7365034e.tar.bz2
digistuff-a5ca8f19b77d03f4897fe64ea70f3c9f7365034e.tar.xz
digistuff-a5ca8f19b77d03f4897fe64ea70f3c9f7365034e.zip
Add "sendregion" command to GPU
This allows part of a buffer to be sent instead of the whole thing, meaning that driving digiscreen arrays can now be done with fewer commands and no temporary buffers. This also greatly improves the speed of doing so, and I suppose also allows hardware-accelerated scrolling if your display is smaller than 64x64...
Diffstat (limited to 'docs')
-rw-r--r--docs/gpu.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/gpu.txt b/docs/gpu.txt
index 98df39d..80427ad 100644
--- a/docs/gpu.txt
+++ b/docs/gpu.txt
@@ -12,6 +12,7 @@ Example:
{command="send",buffer=0,channel="example"}
}
+Invalid commands or commands with missing/invalid parameters will be ignored.
Command: createbuffer
---------------------
@@ -33,6 +34,19 @@ Parameters:
buffer [integer 0-7]: The buffer to send the contents of.
channel [string]: The digilines channel to send the message on.
+Command: sendregion
+-------------------
+
+Sends part of the contents of a buffer to a digiscreen, rgblightstone panel, or other digilines device.
+
+Parameters:
+buffer [integer 0-7]: The buffer to send part of the contents of.
+channel [string]: The digilines channel to send the message on.
+x1 [integer 1-64]: The X position of the left side of the region to send.
+x2 [integer 1-64]: The X position of the right side of the region to send.
+y1 [integer 1-64]: The Y position of the top side of the region to send.
+y2 [integer 1-64]: The Y position of the bottom side of the region to send.
+
Command: drawrect
-----------------