TFT working with Nucleo L476
Fork of SeeedStudioTFTv2 by
Revision 7:dfd69b3be5b6, committed 2013-10-19
- Comitter:
- mazgch
- Date:
- Sat Oct 19 21:32:43 2013 +0000
- Parent:
- 6:2612205220c5
- Child:
- 8:36ea6be5182e
- Commit message:
- ..
Changed in this revision
| SeeedStudioTFTv2.cpp | Show annotated file Show diff for this revision Revisions of this file |
| SeeedStudioTFTv2.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SeeedStudioTFTv2.cpp Sat Oct 19 21:21:59 2013 +0000
+++ b/SeeedStudioTFTv2.cpp Sat Oct 19 21:32:43 2013 +0000
@@ -20,10 +20,10 @@
PinName mosi, PinName miso, PinName sclk,
PinName csTft, PinName rstTft, PinName dcTft, PinName blTft,
PinName csSd):
- SPI_TFT_ILI9341(mosi,miso,sclk,csTft,rstTft,dcTft, "tft"),
#ifdef USE_SDCARD
SDFileSystem(mosi,miso,sclk,csSd, "sdc"),
#endif
+ SPI_TFT_ILI9341(mosi,miso,sclk,csTft,rstTft,dcTft, "tft"),
bl(blTft)
{
#ifndef USE_SDCARD
--- a/SeeedStudioTFTv2.h Sat Oct 19 21:21:59 2013 +0000
+++ b/SeeedStudioTFTv2.h Sat Oct 19 21:32:43 2013 +0000
@@ -25,10 +25,11 @@
int y;
};
-class SeeedStudioTFTv2 : public SPI_TFT_ILI9341
+class SeeedStudioTFTv2 : public
#ifdef USE_SDCARD
- , SDFileSystem
+ SDFileSystem,
#endif
+ SPI_TFT_ILI9341
{
public:
/** create a TFT with touch object connected to the pins:
