Go to the source code of this file.
|
| HANDLE STDCALL | pitft35_start (uint32_t rotation, char *device, uint16_t displayselect, uint16_t touchselect) |
| | Start the PiTFT35 driver and register the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
|
| BOOL STDCALL | pitft35_stop (HANDLE handle) |
| | Stop the PiTFT35 driver and deregister the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
|
◆ PITFT35_FRAMEBUFFER_DESCRIPTION
| #define PITFT35_FRAMEBUFFER_DESCRIPTION "Adafruit PiTFT 3.5\" LCD" |
Description of PiTFT35 device.
PiTFT35 specific constants
◆ PITFT35_SIGNATURE
| #define PITFT35_SIGNATURE 0xAF000035 |
◆ PITFT35_SCREEN_WIDTH
| #define PITFT35_SCREEN_WIDTH 320 |
◆ PITFT35_SCREEN_HEIGHT
| #define PITFT35_SCREEN_HEIGHT 480 |
◆ PITFT35_LCD_DC
◆ PITFT35_TOUCH_IRQ
◆ PITFT35_LCD_BL
◆ PITFT35_LCD_BL_PWM
◆ PITFT35LCD
◆ pitft35_start()
| HANDLE STDCALL pitft35_start |
( |
uint32_t | rotation, |
|
|
char * | device, |
|
|
uint16_t | displayselect, |
|
|
uint16_t | touchselect ) |
Start the PiTFT35 driver and register the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
PiTFT35 Functions
- Parameters
-
| Rotation | The rotation of the display (eg FRAMEBUFFER_ROTATION_180) |
| Device | The SPI device that the HX8357D and STMPE610 devices are connected to |
| DisplaySelect | The SPI chip select of the HX8357D LCD controller |
| TouchSelect | The SPI chip select of the STMPE610 touch controller |
- Returns
- The handle of the PiTFT35 on success or INVALID_HANDLE_VALUE on failure
- Note
- This function will be called during startup if the parameter PITFT35_AUTOSTART is True Can be called multiple times to support more than one PiTFT LCD display
◆ pitft35_stop()
Stop the PiTFT35 driver and deregister the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
- Parameters
-
| Handle | The handle of the PiTFT35 or INVALID_HANDLE_VALUE for the default display |
- Returns
- True if completed or False on failure