You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| lcd_set_brightness |bytearray| Inputting the configuration command of LCD screen brightness. Setting to None indicates that the brightness is controlled by LCD_BL_K (some screens are controlled by registers, and some are controlled by LCD_BL_K) |
6741
+
| lcd_interface |int|type of LCD interface. 0:LCM interface;1:SPI interface |
6742
+
| spi_port |int| Channel selection[0,1],refer to SPI description in machine. |
6743
+
| spi_mode |int|SPI working mode (ususally mode 0): <br />Clock polarity CPOL: When SPIis idle, the level of the clock signal SCLK (0: Low level when idle; 1: High level when idle)<br />0 : CPOL=0, CPHA=0<br />1 : CPOL=0, CPHA=1<br />2: CPOL=1, CPHA=0<br />3: CPOL=1, CPHA=1|
6744
+
| cs_pin |int|CSPIN,refer to Pin Constant Description |
6745
+
| dc_pin |int|DCPIN,refer to Pin Constant Description |
6746
+
| rst_pin |int|RSTPIN,refer to Pin Constant Description |
6747
+
6748
+
* Return Value
6749
+
6750
+
*0 Successful execution.
6751
+
*-1 Initialized.
6752
+
*-2 Parameter error (empty or too large (bigger than 1000 pixels)) .
0 commit comments