Splash¶
splash ¶
Push a full-screen splash image to a connected Stream Deck.
Uploads a single image covering the entire back-panel LCD via HID
command 0x08 (Update Full Screen Image). Intended as a quick
way to test the splash pipeline against real hardware without writing
any Python.
Examples:
::
# Push an image, fitting with cover (default), to the first deck:
python -m deux.tools.splash --image boot.png
# Letterbox with a coloured background:
python -m deux.tools.splash --image logo.svg --fit contain --background "#1a1a2e"
# Clear the screen to solid black:
python -m deux.tools.splash --clear
Notes
The full-screen image is a one-shot whole-LCD blit. Any subsequent
key or window update (including by another running deux process) will
paint over it. See :class:deux.runtime.deck.Deck.show_full_screen_image
for details.
main ¶
Entry point for python -m deux.tools.splash.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
list[str] or None
|
Argument vector (excluding the program name). Defaults to
:data: |
None
|
Returns:
| Type | Description |
|---|---|
int
|
Process exit code. |
Source code in src/deux/tools/splash.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | |