element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum R1 Uno and R3 Mega with SEEEDUINO 2.8" Touch display v1 from RadioShack
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 2 replies
  • Subscribers 417 subscribers
  • Views 421 views
  • Users 0 members are here
Related

R1 Uno and R3 Mega with SEEEDUINO 2.8" Touch display v1 from RadioShack

dmaruska
dmaruska over 13 years ago

I have recently purchased a RadioShack SEEEDUNIO 2.8" touch display.  I recently upgraded to Arduino 1.0.5, I started working with the example programs to insure all worked.  It did not.  I reverted to Arduino 1.0.4 and that fixed the problems with controlling the Uno and the display with the sample programs.  I moved to the Mega as I will need more I/O for the idea project I have and I load the same program on the Mega and the display just lights up, No screen init, or write text to screen.  I have looked to insure that I'm using the same pins as the Uno and they are.  I know that is a relative term as the MCU's are different, and the Mega has more I/O.  This I have looked at the include files and am having a problem to understand where I need to look to find the problem.  Yes, I do select the correct unit to program and com port.  The software compilies and uploads with not problem.  Example that works on Uno and not on the Mega.  I can not locate the code that assignes the pins to com with display.

 

// Draw Texts - Demonstrate drawChar and drawString
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public
//  License as published by the Free Software Foundation; either
//  version 2.1 of the License, or (at your option) any later version.
//
//  This library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with this library; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

 

#include <stdint.h>
#include <TouchScreen.h>
#include <TFT.h>

 

#ifdef SEEEDUINO
  #define YP A2   // must be an analog pin, use "An" notation!
  #define XM A1   // must be an analog pin, use "An" notation!
  #define YM 14   // can be a digital pin, this is A0
  #define XP 17   // can be a digital pin, this is A3
#endif

#ifdef MEGA
  #define YP A2   // must be an analog pin, use "An" notation!
  #define XM A1   // must be an analog pin, use "An" notation!
  #define YM 54   // can be a digital pin, this is A0
  #define XP 57   // can be a digital pin, this is A3
#endif

void setup()
{

Tft.init();  //init TFT library

  Tft.drawString("OUTSIDE TEMP IS:",50,0,1,CYAN);
  Tft.drawString("77",100,20,3,RED);
  //Tft.drawString("H",0,240,1,WHITE);
}

void loop()
{
 

}

 

Regards,

 

Dave M.

  • Sign in to reply
  • Cancel
Parents
  • e14 Contributor
    0 e14 Contributor over 13 years ago

    Dave,

     

    You need to find the TFT.h file in your Arduino libraries folder.  Open and edit this file per the note on the Seeed WIKI:

     

    Note: On Mega/Mega2560, you should change "#define SEEEDUINO" to "#define MEGA" in TFT.h file of 33 line. In addition, the example "tftbmp" only work with Mega/Mega2560.

     

    I am using this display on a Mega 2560 and it works.

     

    Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • dmaruska
    0 dmaruska over 13 years ago in reply to e14 Contributor

    Dave,  Thanks this did indeed fix the problem.  Thanks....

     

    Regards,

     

    Dave M.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • dmaruska
    0 dmaruska over 13 years ago in reply to e14 Contributor

    Dave,  Thanks this did indeed fix the problem.  Thanks....

     

    Regards,

     

    Dave M.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube