Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
ipstft19.h File Reference
#include "ultibo/gpio.h"
#include "ultibo/spi.h"
#include "ultibo/framebuffer.h"

Go to the source code of this file.

Data Structures

struct  _IPSTFT19LCD

Macros

#define IPSTFT19_FRAMEBUFFER_DESCRIPTION   "Adafruit 1.9\" IPS TFT"
 Description of IPSTFT19 device.
#define IPSTFT19_SIGNATURE   0xAF000019
#define IPSTFT19_SCREEN_WIDTH   170
#define IPSTFT19_SCREEN_HEIGHT   320
#define IPSTFT19_COLSTART   35
#define IPSTFT19_DEFAULT_ROTATION   FRAMEBUFFER_ROTATION_90
#define IPSTFT19_LCD_DC   GPIO_PIN_25
#define IPSTFT19_LCD_RST   GPIO_PIN_27
 Add this one.
#define IPSTFT19_LCD_BL   GPIO_PIN_18

Typedefs

typedef struct _IPSTFT19LCD IPSTFT19LCD

Functions

HANDLE STDCALL ipstft19_start (uint32_t rotation, char *device, uint16_t displayselect)
 Start the IPSTFT19 driver and Framebuffer device associated with the display.
BOOL STDCALL ipstft19_stop (HANDLE handle)
 Stop the IPSTFT19 driver and Framebuffer device associated with the display.

Macro Definition Documentation

◆ IPSTFT19_FRAMEBUFFER_DESCRIPTION

#define IPSTFT19_FRAMEBUFFER_DESCRIPTION   "Adafruit 1.9\" IPS TFT"

Description of IPSTFT19 device.

IPSTFT19 specific constants

◆ IPSTFT19_SIGNATURE

#define IPSTFT19_SIGNATURE   0xAF000019

◆ IPSTFT19_SCREEN_WIDTH

#define IPSTFT19_SCREEN_WIDTH   170

◆ IPSTFT19_SCREEN_HEIGHT

#define IPSTFT19_SCREEN_HEIGHT   320

◆ IPSTFT19_COLSTART

#define IPSTFT19_COLSTART   35

◆ IPSTFT19_DEFAULT_ROTATION

#define IPSTFT19_DEFAULT_ROTATION   FRAMEBUFFER_ROTATION_90

◆ IPSTFT19_LCD_DC

#define IPSTFT19_LCD_DC   GPIO_PIN_25

IPSTFT19 GPIO constants

◆ IPSTFT19_LCD_RST

#define IPSTFT19_LCD_RST   GPIO_PIN_27

Add this one.

◆ IPSTFT19_LCD_BL

#define IPSTFT19_LCD_BL   GPIO_PIN_18

Typedef Documentation

◆ IPSTFT19LCD

typedef struct _IPSTFT19LCD IPSTFT19LCD

IPSTFT19 specific types

Function Documentation

◆ ipstft19_start()

HANDLE STDCALL ipstft19_start ( uint32_t rotation,
char * device,
uint16_t displayselect )

Start the IPSTFT19 driver and Framebuffer device associated with the display.

IPSTFT19 Functions

Parameters
RotationThe rotation of the display (eg FRAMEBUFFER_ROTATION_180)
DeviceThe SPI device that the ST7789 device is connected to
DisplaySelectThe SPI chip select of the ST7789 LCD controller
Returns
The handle of the IPSTFT19 on success or INVALID_HANDLE_VALUE on failure
Note
This function will be called during startup if the parameter IPSTFT19_AUTOSTART is True Can be called multiple times to support more than one IPSTFT LCD display

◆ ipstft19_stop()

BOOL STDCALL ipstft19_stop ( HANDLE handle)

Stop the IPSTFT19 driver and Framebuffer device associated with the display.

Parameters
HandleThe handle of the IPSTFT19 or INVALID_HANDLE_VALUE for the default display
Returns
True if completed or False on failure