Go to the source code of this file.
|
| HANDLE STDCALL | lcda35_start (uint32_t rotation, char *device, uint16_t displayselect, uint16_t touchselect) |
| | Start the LCDA35 driver and register the Touch and Framebuffer devices associated with the display.
|
| BOOL STDCALL | lcda35_stop (HANDLE handle) |
| | Stop the LCDA35 driver and deregister the Touch and Framebuffer devices associated with the display.
|
◆ LCDA35_FRAMEBUFFER_DESCRIPTION
| #define LCDA35_FRAMEBUFFER_DESCRIPTION "Waveshare RPi LCD(A) 3.5\"" |
LCDA35 specific constants
◆ LCDA35_SIGNATURE
| #define LCDA35_SIGNATURE 0xAF000A35 |
◆ LCDA35_SCREEN_WIDTH
| #define LCDA35_SCREEN_WIDTH 320 |
◆ LCDA35_SCREEN_HEIGHT
| #define LCDA35_SCREEN_HEIGHT 480 |
◆ LCDA35_LCD_DC
◆ LCDA35_LCD_RST
◆ LCDA35_LCD_BL
Not supported on this screen.
◆ LCDA35_TOUCH_IRQ
◆ LCDA35LCD
◆ lcda35_start()
| HANDLE STDCALL lcda35_start |
( |
uint32_t | rotation, |
|
|
char * | device, |
|
|
uint16_t | displayselect, |
|
|
uint16_t | touchselect ) |
Start the LCDA35 driver and register the Touch and Framebuffer devices associated with the display.
LCDA35 Functions
- Parameters
-
| Rotation | The rotation of the display (eg FRAMEBUFFER_ROTATION_180) |
| Device | The SPI device that the ILI9486 and XPT2046 devices are connected to |
| DisplaySelect | The SPI chip select of the ILI9486 LCD controller |
| TouchSelect | The SPI chip select of the XPT2046 touch controller |
- Returns
- The handle of the LCDA35 on success or INVALID_HANDLE_VALUE on failure
- Note
- This function will be called during startup if the parameter LCDA35_AUTOSTART is True Can be called multiple times to support more than one LCD display
◆ lcda35_stop()
Stop the LCDA35 driver and deregister the Touch and Framebuffer devices associated with the display.
- Parameters
-
| Handle | The handle of the LCDA35 or INVALID_HANDLE_VALUE for the default display |
- Returns
- True if completed or False on failure