devices

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageAreaHeaderNeo added in v1.1.0

func GetImageAreaHeaderNeo(bytesRemaining uint, x, y, width, height uint, pageIndex uint) []byte

func GetImageAreaHeaderPlus

func GetImageAreaHeaderPlus(bytesRemaining uint, x, y, width, height uint, pageIndex uint) []byte

GetImageAreadHeaderPlus returns the USB comms header for the display area above the encoders

Captured package headers for display on encoder 1,2,3,4:

02 0c 00 00 00 00 c8 00 64 00 00 00 00 f0 03 00 (ff d8 ff e0 00 10 ...) 02 0c 00 00 00 00 c8 00 64 00 00 01 00 f0 03 00 .... 02 0c 00 00 00 00 c8 00 64 00 01 02 00 76 02 00 ....

02 0c c8 00 00 00 c8 00 64 00 00 00 00 f0 03 00 (ff d8 ff e0 00 10 ...) 02 0c c8 00 00 00 c8 00 64 00 00 01 00 f0 03 00 .... 02 0c c8 00 00 00 c8 00 64 00 01 02 00 76 02 00 ....

02 0c 90 01 00 00 c8 00 64 00 00 00 00 f0 03 00 (ff d8 ff e0 00 10 ...) 02 0c 90 01 00 00 c8 00 64 00 00 01 00 f0 03 00 .... 02 0c 90 01 00 00 c8 00 64 00 01 02 00 76 02 00 ....

02 0c 58 02 00 00 c8 00 64 00 00 00 00 f0 03 00 (ff d8 ff e0 00 10 ...) 02 0c 58 02 00 00 c8 00 64 00 00 01 00 f0 03 00 .... 02 0c 58 02 00 00 c8 00 64 00 01 02 00 76 02 00 ....

0-1 = header: 02 0c 2-3 = x-start (Little Endian): 0, 200, 400, 600 4-5 = y-start? 0,0,0,0 6-7 = width (Little Endian): 200 8-9 = height (Little Endian): 100 10 = 1= last, 0= before that 11 = page index 12 = ... 13-14 = (Little Endian): length (1024-16 = 1008 for full packages) 15 = ...

y is so far unknown - not even if it exists, but overflowing the X-value will bring the rendering to the next line. If x+width exceeds 800 pixel width, it will render "on the next line" of the display.

func GetImageHeaderMini

func GetImageHeaderMini(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

GetImageHeaderMini returns the USB comms header for a button image for the XL

func GetImageHeaderMk2

func GetImageHeaderMk2(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

GetImageHeaderMk2 returns the USB comms header for a button image for the XL

func GetImageHeaderNeo added in v1.1.0

func GetImageHeaderNeo(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

GetImageHeaderNeo returns the USB comms header for a button image for the XL

func GetImageHeaderOriginal

func GetImageHeaderOriginal(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

GetImageHeaderMini returns the USB comms header for a button image for the original

func GetImageHeaderOv2

func GetImageHeaderOv2(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

GetImageHeaderOv2 returns the USB comms header for a button image for the XL

func GetImageHeaderPedal

func GetImageHeaderPedal(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

func GetImageHeaderPlus

func GetImageHeaderPlus(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

GetImageHeaderPlus returns the USB comms header for a button image for the XL

func GetImageHeaderXl

func GetImageHeaderXl(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte

GetImageHeaderXl returns the USB comms header for a button image for the XL

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL