Go to the source code of this file.
|
| HANDLE STDCALL | pitft28_start (uint32_t rotation, char *device, uint16_t displayselect, uint16_t touchselect) |
| | Start the PiTFT28 driver and register the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
|
| HANDLE STDCALL | pitft28_resistive_start (uint32_t rotation, char *device, uint16_t displayselect, uint16_t touchselect) |
| | Start the PiTFT28 driver and register the resistive Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
|
| HANDLE STDCALL | pitft28_capacitive_start (uint32_t rotation, char *spidevice, char *i2cdevice, uint16_t displayselect, uint16_t touchaddress) |
| | Start the PiTFT28 driver and register the capacitive Touch and Framebuffer devices associated with the display.
|
| BOOL STDCALL | pitft28_stop (HANDLE handle) |
| | Stop the PiTFT28 driver and deregister the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
|
◆ PITFT28_FRAMEBUFFER_DESCRIPTION
| #define PITFT28_FRAMEBUFFER_DESCRIPTION "Adafruit PiTFT 2.8\" LCD" |
Description of PiTFT28 device.
PiTFT28 specific constants
◆ PITFT28_SIGNATURE
| #define PITFT28_SIGNATURE 0xAF000028 |
◆ PITFT28_SCREEN_WIDTH
| #define PITFT28_SCREEN_WIDTH 240 |
◆ PITFT28_SCREEN_HEIGHT
| #define PITFT28_SCREEN_HEIGHT 320 |
◆ PITFT28_LCD_DC
◆ PITFT28_TOUCH_IRQ
◆ PITFT28_LCD_BL
◆ PITFT28LCD
◆ pitft28_start()
| HANDLE STDCALL pitft28_start |
( |
uint32_t | rotation, |
|
|
char * | device, |
|
|
uint16_t | displayselect, |
|
|
uint16_t | touchselect ) |
Start the PiTFT28 driver and register the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
PiTFT28 Functions
- Parameters
-
| Rotation | The rotation of the display (eg FRAMEBUFFER_ROTATION_180) |
| Device | The SPI device that the ILI9340 and STMPE610 devices are connected to |
| DisplaySelect | The SPI chip select of the ILI9340 LCD controller |
| TouchSelect | The SPI chip select of the STMPE610 touch controller |
- Returns
- The handle of the PiTFT28 on success or INVALID_HANDLE_VALUE on failure
- Note
- This function will be called during startup if the parameter PITFT28_AUTOSTART is True Can be called multiple times to support more than one PiTFT LCD display
-
Replaced by PiTFT28ResistiveStart to accommodate capacitive display option
◆ pitft28_resistive_start()
| HANDLE STDCALL pitft28_resistive_start |
( |
uint32_t | rotation, |
|
|
char * | device, |
|
|
uint16_t | displayselect, |
|
|
uint16_t | touchselect ) |
Start the PiTFT28 driver and register the resistive Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
- Parameters
-
| Rotation | The rotation of the display (eg FRAMEBUFFER_ROTATION_180) |
| Device | The SPI device that the ILI9340 and STMPE610 devices are connected to |
| DisplaySelect | The SPI chip select of the ILI9340 LCD controller |
| TouchSelect | The SPI chip select of the STMPE610 touch controller |
- Returns
- The handle of the PiTFT28 on success or INVALID_HANDLE_VALUE on failure
- Note
- This function will be called during startup if the parameter PITFT28_AUTOSTART is True Can be called multiple times to support more than one PiTFT LCD display
◆ pitft28_capacitive_start()
| HANDLE STDCALL pitft28_capacitive_start |
( |
uint32_t | rotation, |
|
|
char * | spidevice, |
|
|
char * | i2cdevice, |
|
|
uint16_t | displayselect, |
|
|
uint16_t | touchaddress ) |
Start the PiTFT28 driver and register the capacitive Touch and Framebuffer devices associated with the display.
- Parameters
-
| Rotation | The rotation of the display (eg FRAMEBUFFER_ROTATION_180) |
| SPIDevice | The SPI device that the ILI9340 device is connected to |
| I2CDevice | The I2C device that the FT6236 device is connected to |
| DisplaySelect | The SPI chip select of the ILI9340 LCD controller |
| TouchAddress | The I2C address of the FT6236 touch controller |
- Returns
- The handle of the PiTFT28 on success or INVALID_HANDLE_VALUE on failure
- Note
- This function will be called during startup if the parameter PITFT28_AUTOSTART is True Can be called multiple times to support more than one PiTFT LCD display
◆ pitft28_stop()
Stop the PiTFT28 driver and deregister the Touch, Backlight (GPIO) and Framebuffer devices associated with the display.
- Parameters
-
| Handle | The handle of the PiTFT28 or INVALID_HANDLE_VALUE for the default display |
- Returns
- True if completed or False on failure