mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
TFT library to new format
This commit is contained in:
parent
3b55bddb79
commit
87d3b4f56b
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
10
libraries/TFT/library.properties
Normal file
10
libraries/TFT/library.properties
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name=TFT
|
||||||
|
author=Adafruit/Arduino
|
||||||
|
email=info@arduino.cc
|
||||||
|
sentence=With this library you can write, draw and display images on TFT displays
|
||||||
|
paragraph=This library is compatible with most of the TFT display based on the ST7735 chipset
|
||||||
|
url=http://arduino.cc/en/Reference/TFTLibrary
|
||||||
|
architectures=*
|
||||||
|
version=1.0
|
||||||
|
dependencies= SPI, SD
|
||||||
|
core-dependencies=arduino (>=1.5.0)
|
@ -1,6 +1,6 @@
|
|||||||
#include "TFT.h"
|
#include "TFT.h"
|
||||||
|
|
||||||
#if (USB_VID == 0x2341) && (USB_PID == 0x803C) // are we building for Esplora?
|
#if ARDUINO_AVR_ESPLORA // are we building for Esplora?
|
||||||
TFT EsploraTFT(7, 0, 1);
|
TFT EsploraTFT(7, 0, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -21,7 +21,7 @@ public:
|
|||||||
|
|
||||||
/// Esplora boards have hard-wired connections with
|
/// Esplora boards have hard-wired connections with
|
||||||
/// the Arduino LCD if mounted on the onboard connector.
|
/// the Arduino LCD if mounted on the onboard connector.
|
||||||
#if (USB_VID == 0x2341) && (USB_PID == 0x803C) // are we building for Esplora?
|
#if ARDUINO_AVR_ESPLORA // are we building for Esplora?
|
||||||
extern TFT EsploraTFT;
|
extern TFT EsploraTFT;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -25,7 +25,7 @@
|
|||||||
#else
|
#else
|
||||||
#include "WProgram.h"
|
#include "WProgram.h"
|
||||||
#endif
|
#endif
|
||||||
#include <Adafruit_GFX.h>
|
#include "Adafruit_GFX.h"
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
|
||||||
// some flags for initR() :(
|
// some flags for initR() :(
|
Loading…
Reference in New Issue
Block a user