Skip to content

Commit 87d3b4f

Browse files
committed
TFT library to new format
1 parent 3b55bdd commit 87d3b4f

29 files changed

+13
-3
lines changed

libraries/TFT/library.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=TFT
2+
author=Adafruit/Arduino
3+
email=info@arduino.cc
4+
sentence=With this library you can write, draw and display images on TFT displays
5+
paragraph=This library is compatible with most of the TFT display based on the ST7735 chipset
6+
url=http://arduino.cc/en/Reference/TFTLibrary
7+
architectures=*
8+
version=1.0
9+
dependencies= SPI, SD
10+
core-dependencies=arduino (>=1.5.0)

hardware/arduino/avr/libraries/TFT/TFT.cpp renamed to libraries/TFT/src/TFT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "TFT.h"
22

3-
#if (USB_VID == 0x2341) && (USB_PID == 0x803C) // are we building for Esplora?
3+
#if ARDUINO_AVR_ESPLORA // are we building for Esplora?
44
TFT EsploraTFT(7, 0, 1);
55
#endif
66

hardware/arduino/avr/libraries/TFT/TFT.h renamed to libraries/TFT/src/TFT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TFT : public Adafruit_ST7735 {
2121

2222
/// Esplora boards have hard-wired connections with
2323
/// the Arduino LCD if mounted on the onboard connector.
24-
#if (USB_VID == 0x2341) && (USB_PID == 0x803C) // are we building for Esplora?
24+
#if ARDUINO_AVR_ESPLORA // are we building for Esplora?
2525
extern TFT EsploraTFT;
2626
#endif
2727

hardware/arduino/avr/libraries/TFT/utility/Adafruit_ST7735.h renamed to libraries/TFT/src/utility/Adafruit_ST7735.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#else
2626
#include "WProgram.h"
2727
#endif
28-
#include <Adafruit_GFX.h>
28+
#include "Adafruit_GFX.h"
2929
#include <avr/pgmspace.h>
3030

3131
// some flags for initR() :(

0 commit comments

Comments
 (0)