Adafruit Library
Adafruit_miniTFTWing.h
1 #pragma once
2 
3 #ifndef _MINI_TFT_WING_H
4 #define _MINI_TFT_WING_H
5 
6 #include "Adafruit_seesaw.h"
7 
8 #define TFTWING_ADDR 0x5E
9 
10 #define TFTWING_BACKLIGHT_ON 0 // inverted output!
11 #define TFTWING_BACKLIGHT_OFF 0xFFFF // inverted output!
12 
13 extern uint32_t TFTWING_BUTTON_UP, TFTWING_BUTTON_DOWN, TFTWING_BUTTON_LEFT,
14  TFTWING_BUTTON_RIGHT, TFTWING_BUTTON_A, TFTWING_BUTTON_B,
15  TFTWING_BUTTON_SELECT;
16 
17 /**************************************************************************/
22 /**************************************************************************/
24 public:
27 
28  bool begin(uint8_t addr = TFTWING_ADDR, TwoWire *Wi = NULL);
29 
30  void setBacklight(uint16_t value);
31  void setBacklightFreq(uint16_t freq);
32  void tftReset(bool rst = true);
33  uint32_t readButtons();
34 };
35 
36 #endif
void setBacklight(uint16_t value)
set the value of the backlight
Definition: Adafruit_miniTFTWing.cpp:92
Class that stores state and functions for interacting with seesaw helper IC.
Definition: Adafruit_seesaw.h:235
bool begin(uint8_t addr=TFTWING_ADDR, TwoWire *Wi=NULL)
set up the miniTFTWing
Definition: Adafruit_miniTFTWing.cpp:41
Class that stores state and functions for interacting with mini tft wing variant of seesaw helper IC...
Definition: Adafruit_miniTFTWing.h:23
void setBacklightFreq(uint16_t freq)
set the PWM frequency for the backlight
Definition: Adafruit_miniTFTWing.cpp:114
uint32_t readButtons()
read all buttons on the wing and return as a 32 bit integer
Definition: Adafruit_miniTFTWing.cpp:138
void tftReset(bool rst=true)
reset the TFT screen by setting the value of the reset pin
Definition: Adafruit_miniTFTWing.cpp:128