LCD AddIntToBuffer

A command for Logitech G15 LCD

Syntax:

LCD_AddIntToBuffer Value:long FieldSize:long ZeroPad:bool

Adds an integer to the text buffer. FieldSize determines the size, in characters, of the field that will be shown. If ZeroPad is 1, the value will be padded with leading zeros if it contains less characters than FieldSize.

ExampleEdit

The following use of the function:

LCD_AddIntToBuffer 2 4 1

Would print "0002".