Insane

Command Write Configure - DISPLAY_VIEWER

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘W’

‘l’

Infor 1

Infor 2

Infor 3

Infor 4

...


Name CFG : DISPLAY_VIEWER

Number of field values : 8

 

Payload

Index

Type value

Min

Value

Max

Value

Default

Value

Min Length

Max Length

Describe

Unit

PL2

INTEGER

0

2

1

-

-

Type Display

 

PL3

INTEGER

0

6

6

-

-

Brightness Display

 

PL4

INTEGER

0

6

6

-

-

Contrast Display

 

PL5

INTEGER

0

1

0

-

-

Flip Display

 

PL6

INTEGER

0

1

1

-

-

Use ERROR-LED

 

PL7

INTEGER

0

1

0

-

-

Invert ERROR-LED state

 

PL8

INTEGER

0

1

1

-

-

Use CONNECTION-LED

 

PL9

INTEGER

0

1

0

-

-

Invert CONNECTION-LED state

 



PL0

PL1

PL

Type Display

Unit

‘W’

‘l’

0

NEOPIXEL LED ( 4 LED)

 

 

 

1

Oled SSD1306 0.96'' (I2C - 128x64)

 

 

 

2

Oled SH1106 1.3'' (I2C - 128x64)

 

 

PL0

PL1

PL3

Brightness Display

Unit

PL0

PL1

PL4

Contrast Display

 

‘W’

‘l’

0

10

 

 

 

1

20

 

 

 

2

50

 

 

 

3

100

 

 

 

4

150

 

 

 

5

200

 

 

 

6

255

 


PL0

PL1

PL5

Flip Display

Unit

‘W’

‘l’

0

No Flip Display .

 

 

 

1

Yes Flip Display.

If type display NEOPIXEL LED: Rorate index neopixel 1234 to 4321

If type display OLED Display: Vertical flip screen .

 


PL0

PL1

PL6

Use ERROR-LED

Unit

PL0

PL1

PL8

Use CONNECTION-LED

 

‘W’

‘l’

0

Not use

 

 

 

1

Use

 


PL0

PL1

PL7

Invert ERROR-LED state

Unit

PL0

PL1

PL9

Invert CONNECTION-LED state

 

‘W’

‘l’

0

No Invert

 

 

 

1

Yes Invert

 

 

ESPrtk Respond

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘l’

STRING

-

-

1

1

ID Configure : DISPLAY_VIEWER

 

 

PL3

INTEGER

0

1

-

-

Status Configure

 

0

Error: Failed to save , please try again

1

OK : Saved configure success

 

PL4

STRING

-

-

-

-

Describe Status Configure in text string format

 


Example

Message :

HOST Send

$ESP_OK|20|W|l|1|6|6|0|1|0|1|0|*2509

ACK Respond

$ESP_OK|48|W|l|1|( ID : DISPLAY_VIEWER ) : Saved Success .|*2044

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…

 

Command Read configure - DISPLAY_VIEWER

ESPrtk Respond

The index / range of values / data types is similar to the index / range of values / data types of payloads when configured.

Example

Message :

HOST Send

$ESP_OK|5|R|l||*6A30

ACK Respond

$ESP_OK|20|R|l|1|6|6|0|1|0|1|0|*2009

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…