Documentation ¶
Index ¶
- func GetImageAreaHeaderNeo(bytesRemaining uint, x, y, width, height uint, pageIndex uint) []byte
- func GetImageAreaHeaderPlus(bytesRemaining uint, x, y, width, height uint, pageIndex uint) []byte
- func GetImageHeaderMini(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
- func GetImageHeaderMk2(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
- func GetImageHeaderNeo(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
- func GetImageHeaderOriginal(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
- func GetImageHeaderOv2(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
- func GetImageHeaderPedal(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
- func GetImageHeaderPlus(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
- func GetImageHeaderXl(bytesRemaining uint, btnIndex uint, pageNumber uint) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageAreaHeaderNeo ¶ added in v1.1.0
func GetImageAreaHeaderPlus ¶
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 ¶
GetImageHeaderMini returns the USB comms header for a button image for the XL
func GetImageHeaderMk2 ¶
GetImageHeaderMk2 returns the USB comms header for a button image for the XL
func GetImageHeaderNeo ¶ added in v1.1.0
GetImageHeaderNeo returns the USB comms header for a button image for the XL
func GetImageHeaderOriginal ¶
GetImageHeaderMini returns the USB comms header for a button image for the original
func GetImageHeaderOv2 ¶
GetImageHeaderOv2 returns the USB comms header for a button image for the XL
func GetImageHeaderPedal ¶
func GetImageHeaderPlus ¶
GetImageHeaderPlus returns the USB comms header for a button image for the XL
Types ¶
This section is empty.