WPI ECE 2049 STM32 Adafruit TFT 1.8" Shield
Loading...
Searching...
No Matches
Adafruit_TFTShield18_API.h
Go to the documentation of this file.
1
13
14#ifndef ADAFRUIT_TFTSHIELD18_API_H
15#define ADAFRUIT_TFTSHIELD18_API_H
16
17#include "stdint.h"
18#include "Adafruit_TFTShield18_Macros.h"
19#include "stm32h5xx_hal.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif // __cplusplus
24
32
38void TFTShield18_create(I2C_HandleTypeDef *i2c_handle);
39
48
54void TFTShield18_setBacklight(uint16_t value);
55
61void TFTShield18_setBacklightFreq(uint16_t freq);
62
69void TFTShield18_tftReset(bool rst);
70
78
79#ifdef __cplusplus
80}
81#endif // __cplusplus
82
83#endif // ADAFRUIT_TFTSHIELD18_API_H
void TFTShield18_tftReset(bool rst)
Perform a SW reset of the display and seesaw devices. Required to be called after initialization to r...
void TFTShield18_create(I2C_HandleTypeDef *i2c_handle)
Function to create an instance of the seesaw class for the TFT shield. Must be called before any othe...
uint32_t TFTShield18_readButtons()
Function to read the state of the on board shield buttons from the seesaw chip over I2C....
void TFTShield18_setBacklightFreq(uint16_t freq)
Sets the frequency of the backlight PWM.
void TFTShield18_setBacklight(uint16_t value)
Sets the backlight to a value between 0(0x0000) (off) and 65535(0xFFFF) (full brightness).
struct TFTShield18_Handle TFTShield18_Handle
Internal handle used to store the instance of an Adafruit_TFTShield18 class for use in the C API func...
Definition Adafruit_TFTShield18_API.h:31
bool TFTShield18_begin()
Function to initialize the seesaw device on the TFT shield. Must be called before using any other fun...