Difference between revisions of "Unit PiTFT35"
Line 48: | Line 48: | ||
---- | ---- | ||
− | '' | + | |
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PiTFT35 specific constants''' <code> PITFT35_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PITFT35_FRAMEBUFFER_DESCRIPTION = 'Adafruit PiTFT 3.5" LCD';</code> | ||
+ | | Description of PiTFT35 device | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PITFT35_SIGNATURE = $AF000035;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PITFT35_SCREEN_WIDTH = 320;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>PITFT35_SCREEN_HEIGHT = 480;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PiTFT35 GPIO constants''' <code> PITFT35_LCD_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PITFT35_LCD_DC = GPIO_PIN_25;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>PITFT35_TOUCH_IRQ = GPIO_PIN_24;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PITFT35_LCD_BL = GPIO_PIN_2;</code> | ||
+ | | STMPE GPIO | ||
+ | |- | ||
+ | | <code>PITFT35_LCD_BL_PWM = GPIO_PIN_18;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Type definitions === | === Type definitions === |
Revision as of 06:05, 13 December 2016
Return to Unit Reference
Contents
[hide]Description
The Adafruit PiTFT 3.5" LCD is a 480 x 320 pixel TFT with resistive touchscreen using a Himax HX8357 driver and a STMicroelectronics STMPE811 resistive touchscreen controller.
This unit ties together the various components needed to make one of these boards work with Ultibo by finding the correct SPI device, creating the STMPE811 Touch device, creating the HX8357D Framebuffer device and registering all of it with the correct parameters for the Adafruit board.
Details:
HX8357D
Width: 320
Height: 480
SPI Mode: 0
SPI Frequency: 42000000
SPI Chip Select: SPI_CS_0
DC GPIO: GPIO_PIN_25 (Pull: GPIO_PULL_NONE)
RST GPIO: GPIO_PIN_UNKNOWN
Backlight GPIO:
GPIO_PIN_2 (STMPE GPIO)
GPIO_PIN_18 (PWM)
STMPE
Chip: STMPE_CHIP_610
SPI Mode: 0
SPI Frequency: 500000
SPI Chip Select: SPI_CS_1
IRQ GPIO: GPIO_PIN_24 (Trigger: GPIO_TRIGGER_FALLING)(Pull: GPIO_PULL_UP)
Constants
PITFT35_*
PITFT35_LCD_*
Type definitions
To be documented
Public variables
To be documented
Function declarations
Initialization functions
function PiTFT35Start(Rotation:LongWord; const Device:String; DisplaySelect,TouchSelect:Word):THandle;
function PiTFT35Stop(Handle:THandle):Boolean;
Return to Unit Reference