PIP GRL remake

Hello all been a while

I'm trying to replicate this project but encountered some issues
is there any one that can help?

Arduino: 1.8.5 (Windows 10), TD: 1.41, Board: "Teensy 3.2 / 3.1, Serial, 72 MHz, Faster, US English"

PIP_GRL_31415_v2: In function 'void setup()':
PIP_GRL_31415_v2:157: error: 'sd' was not declared in this scope
   if (!sd.begin(chipSelect, SPI_FULL_SPEED)) sd.initErrorHalt();

        ^

PIP_GRL_31415_v2:159: error: 'Page_0' was not declared in this scope
   Page_0(); // goto login page

          ^

functions: In function 'void checkpass()':
functions:46: error: 'Page_0' was not declared in this scope
       Page_0(); // display page 0 again with the new info

              ^

functions:52: error: 'Page_99' was not declared in this scope
       Page_99(); // display Bricked page, nothing is possible anymore...

               ^

functions:59: error: 'Page_1' was not declared in this scope
     Page_1(); // display page 1

            ^

functions: In function 'void checkpass2(char*, char*, char*, char*, char*)':
functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

            ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                        ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                                    ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                                                ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                                                            ^

functions:107: error: 'Page_0' was not declared in this scope
       Page_0(); // display page 0 again with the new info

              ^

functions:113: error: 'Page_99' was not declared in this scope
       Page_99(); // display Bricked page, nothing is possible anymore...

               ^

functions:120: error: 'Page_1' was not declared in this scope
     Page_1(); // display page 1

            ^

functions: In function 'void bmpDraw(char*, int, int)':
functions:329: error: 'progmemPrint' was not declared in this scope
   progmemPrint(PSTR("Loading image '"));

                                       ^

functions:311: warning: unused variable 'bmpWidth' 
   int      bmpWidth, bmpHeight;   // W+H in pixels

            ^

functions:311: warning: unused variable 'bmpHeight' 
   int      bmpWidth, bmpHeight;   // W+H in pixels

                      ^

functions:312: warning: unused variable 'bmpDepth' 
   uint8_t  bmpDepth;              // Bit depth (currently must be 24)

            ^

functions:313: warning: unused variable 'bmpImageoffset' 
   uint32_t bmpImageoffset;        // Start of image data in file

            ^

functions:314: warning: unused variable 'rowSize' 
   uint32_t rowSize;               // Not always = bmpWidth; may have padding

            ^

functions:316: warning: unused variable 'lcdbuffer' 
   uint16_t lcdbuffer[BUFFPIXEL];  // pixel out buffer (16-bit per pixel)

            ^

functions:317: warning: unused variable 'buffidx' 
   uint8_t  buffidx = sizeof(sdbuffer); // Current position in sdbuffer

            ^

functions:318: warning: unused variable 'goodBmp' 
   boolean  goodBmp = false;       // Set to true on valid header parse

            ^

functions:319: warning: unused variable 'flip' 
   boolean  flip    = true;        // BMP is stored bottom-to-top

            ^

functions:320: warning: unused variable 'w' 
   int      w, h, row, col;

            ^

functions:320: warning: unused variable 'h' 
   int      w, h, row, col;

               ^

functions:320: warning: unused variable 'row' 
   int      w, h, row, col;

                  ^

functions:320: warning: unused variable 'col' 
   int      w, h, row, col;

                       ^

functions:321: warning: unused variable 'r' 
   uint8_t  r, g, b;

            ^

functions:321: warning: unused variable 'g' 
   uint8_t  r, g, b;

               ^

functions:321: warning: unused variable 'b' 
   uint8_t  r, g, b;

                  ^

functions:322: warning: unused variable 'pos' 
   uint32_t pos = 0, startTime = millis();

            ^

functions:322: warning: unused variable 'startTime' 
   uint32_t pos = 0, startTime = millis();

                     ^

functions:323: warning: unused variable 'lcdidx' 
   uint8_t  lcdidx = 0;

            ^

functions:324: warning: unused variable 'first' 
   boolean  first = true;

            ^

C:\Users\Hunter\Desktop\E-Droid_v2\PIP_GRL_31415_v2\functions.ino: At global scope:

functions:335: error: expected unqualified-id before 'else'
   } else {

     ^

functions:346: error: expected unqualified-id before 'if'
   if(read16(bmpFile) == 0x4D42) { // BMP signature

   ^

'sd' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The sd issue hang on

Arduino: 1.8.5 (Windows 10), TD: 1.41, Board: "Teensy 3.2 / 3.1, Serial, 72 MHz, Faster, US English"

PIP_GRL_31415_v2: In function 'void setup()':
PIP_GRL_31415_v2:157: error: 'sd' was not declared in this scope
if (!sd.begin(chipSelect, SPI_FULL_SPEED)) sd.initErrorHalt();

^

PIP_GRL_31415_v2:159: error: 'Page_0' was not declared in this scope
Page_0(); // goto login page

^

functions: In function 'void checkpass()':
functions:46: error: 'Page_0' was not declared in this scope
Page_0(); // display page 0 again with the new info

^

functions:52: error: 'Page_99' was not declared in this scope
Page_99(); // display Bricked page, nothing is possible anymore...

^

functions:59: error: 'Page_1' was not declared in this scope
Page_1(); // display page 1

^

functions: In function 'void checkpass2(char*, char*, char*, char*, char*)':
functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:107: error: 'Page_0' was not declared in this scope
Page_0(); // display page 0 again with the new info

^

functions:113: error: 'Page_99' was not declared in this scope
Page_99(); // display Bricked page, nothing is possible anymore...

^

functions:120: error: 'Page_1' was not declared in this scope
Page_1(); // display page 1

^

functions: In function 'void bmpDraw(char*, int, int)':
functions:329: error: 'progmemPrint' was not declared in this scope
progmemPrint(PSTR("Loading image '"));

^

functions:311: warning: unused variable 'bmpWidth'
int bmpWidth, bmpHeight; // W+H in pixels

^

functions:311: warning: unused variable 'bmpHeight'
int bmpWidth, bmpHeight; // W+H in pixels

^

functions:312: warning: unused variable 'bmpDepth'
uint8_t bmpDepth; // Bit depth (currently must be 24)

^

functions:313: warning: unused variable 'bmpImageoffset'
uint32_t bmpImageoffset; // Start of image data in file

^

functions:314: warning: unused variable 'rowSize'
uint32_t rowSize; // Not always = bmpWidth; may have padding

^

functions:316: warning: unused variable 'lcdbuffer'
uint16_t lcdbuffer[BUFFPIXEL]; // pixel out buffer (16-bit per pixel)

^

functions:317: warning: unused variable 'buffidx'
uint8_t buffidx = sizeof(sdbuffer); // Current position in sdbuffer

^

functions:318: warning: unused variable 'goodBmp'
boolean goodBmp = false; // Set to true on valid header parse

^

functions:319: warning: unused variable 'flip'
boolean flip = true; // BMP is stored bottom-to-top

^

functions:320: warning: unused variable 'w'
int w, h, row, col;

^

functions:320: warning: unused variable 'h'
int w, h, row, col;

^

functions:320: warning: unused variable 'row'
int w, h, row, col;

^

functions:320: warning: unused variable 'col'
int w, h, row, col;

^

functions:321: warning: unused variable 'r'
uint8_t r, g, b;

^

functions:321: warning: unused variable 'g'
uint8_t r, g, b;

^

functions:321: warning: unused variable 'b'
uint8_t r, g, b;

^

functions:322: warning: unused variable 'pos'
uint32_t pos = 0, startTime = millis();

^

functions:322: warning: unused variable 'startTime'
uint32_t pos = 0, startTime = millis();

^

functions:323: warning: unused variable 'lcdidx'
uint8_t lcdidx = 0;

^

functions:324: warning: unused variable 'first'
boolean first = true;

^

C:\Users\Hunter\Desktop\E-Droid_v2\PIP_GRL_31415_v2\functions.ino: At global scope:

functions:335: error: expected unqualified-id before 'else'
} else {

^

functions:346: error: expected unqualified-id before 'if'
if(read16(bmpFile) == 0x4D42) { // BMP signature

^

'sd' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

if (!sd.begin(chipSelect, SPI_FULL_SPEED)) sd.initErrorHalt();

I'm using a teensy 3.2 to try to make this work the error is on the bottom

Arduino: 1.8.5 (Windows 10), TD: 1.41, Board: "Teensy 3.2 / 3.1, Serial, 72 MHz, Faster, US English"

PIP_GRL_31415_v2: In function 'void setup()':
PIP_GRL_31415_v2:157: error: 'sd' was not declared in this scope
   if (!sd.begin(chipSelect, SPI_FULL_SPEED)) sd.initErrorHalt();

        ^

PIP_GRL_31415_v2:159: error: 'Page_0' was not declared in this scope
   Page_0(); // goto login page

          ^

functions: In function 'void checkpass()':
functions:46: error: 'Page_0' was not declared in this scope
       Page_0(); // display page 0 again with the new info

              ^

functions:52: error: 'Page_99' was not declared in this scope
       Page_99(); // display Bricked page, nothing is possible anymore...

               ^

functions:59: error: 'Page_1' was not declared in this scope
     Page_1(); // display page 1

            ^

functions: In function 'void checkpass2(char*, char*, char*, char*, char*)':
functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

            ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                        ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                                    ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                                                ^

functions:70: warning: comparison with string literal results in unspecified behaviour 
   if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

                                                            ^

functions:107: error: 'Page_0' was not declared in this scope
       Page_0(); // display page 0 again with the new info

              ^

functions:113: error: 'Page_99' was not declared in this scope
       Page_99(); // display Bricked page, nothing is possible anymore...

               ^

functions:120: error: 'Page_1' was not declared in this scope
     Page_1(); // display page 1

            ^

functions: In function 'void bmpDraw(char*, int, int)':
functions:329: error: 'progmemPrint' was not declared in this scope
   progmemPrint(PSTR("Loading image '"));

                                       ^

functions:311: warning: unused variable 'bmpWidth' 
   int      bmpWidth, bmpHeight;   // W+H in pixels

            ^

functions:311: warning: unused variable 'bmpHeight' 
   int      bmpWidth, bmpHeight;   // W+H in pixels

                      ^

functions:312: warning: unused variable 'bmpDepth' 
   uint8_t  bmpDepth;              // Bit depth (currently must be 24)

            ^

functions:313: warning: unused variable 'bmpImageoffset' 
   uint32_t bmpImageoffset;        // Start of image data in file

            ^

functions:314: warning: unused variable 'rowSize' 
   uint32_t rowSize;               // Not always = bmpWidth; may have padding

            ^

functions:316: warning: unused variable 'lcdbuffer' 
   uint16_t lcdbuffer[BUFFPIXEL];  // pixel out buffer (16-bit per pixel)

            ^

functions:317: warning: unused variable 'buffidx' 
   uint8_t  buffidx = sizeof(sdbuffer); // Current position in sdbuffer

            ^

functions:318: warning: unused variable 'goodBmp' 
   boolean  goodBmp = false;       // Set to true on valid header parse

            ^

functions:319: warning: unused variable 'flip' 
   boolean  flip    = true;        // BMP is stored bottom-to-top

            ^

functions:320: warning: unused variable 'w' 
   int      w, h, row, col;

            ^

functions:320: warning: unused variable 'h' 
   int      w, h, row, col;

               ^

functions:320: warning: unused variable 'row' 
   int      w, h, row, col;

                  ^

functions:320: warning: unused variable 'col' 
   int      w, h, row, col;

                       ^

functions:321: warning: unused variable 'r' 
   uint8_t  r, g, b;

            ^

functions:321: warning: unused variable 'g' 
   uint8_t  r, g, b;

               ^

functions:321: warning: unused variable 'b' 
   uint8_t  r, g, b;

                  ^

functions:322: warning: unused variable 'pos' 
   uint32_t pos = 0, startTime = millis();

            ^

functions:322: warning: unused variable 'startTime' 
   uint32_t pos = 0, startTime = millis();

                     ^

functions:323: warning: unused variable 'lcdidx' 
   uint8_t  lcdidx = 0;

            ^

functions:324: warning: unused variable 'first' 
   boolean  first = true;

            ^

C:\Users\Hunter\Desktop\E-Droid_v2\PIP_GRL_31415_v2\functions.ino: At global scope:

functions:335: error: expected unqualified-id before 'else'
   } else {

     ^

functions:346: error: expected unqualified-id before 'if'
   if(read16(bmpFile) == 0x4D42) { // BMP signature

   ^

'sd' was not declared in this scope

oh no problem

here's the first part

// Define libraries
#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_TFTLCD.h> // Hardware-specific library
#include <stdint.h>          // not sure why this is included
#include "TouchScreen.h"     // Touchscreen library
#include <Adafruit_GPS.h>
//#include <SdFat.h>
#include <SdFatUtil.h>
#include <sd.h>


// Configure pins for screen and speaker (more will follow)
//#define Point p//dunno I just need to define it
#define YM 9   // can be a digital pin
#define XM A3  // must be an analog pin, use "An" notation!
#define YP A9  // must be an analog pin, use "An" notation!
#define XP 4   // can be a digital pin
#define LCD_CS A8 // Chip Select goes to Analog 3
#define LCD_CD A5 // Command/Data goes to Analog 2
#define LCD_WR A4 // LCD Write goes to Analog 1
#define LCD_RD A1 // LCD Read goes to Analog 0
#define LCD_RESET A2 // Can alternately just connect to Arduino's reset pin
#define SPEAKER 3 // Can alternately just connect to Arduino's reset pin
const uint8_t chipSelect = SS;
// GPS is set to seria1 (pin0-1, RX0/TX0)

// Configure microsd settings
//SdFat sd; // set filesystem
SdFile file; // set file
#define BUF_SIZE 10240

// Configure screen settings
Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET); // setup TFT library

// Configure bmpDraw settings
#define BUFFPIXEL 20

// Configure touchsensitive settings
TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300); // set touchscreen resistance to 300 ohm
TSPoint p = ts.getPoint(); // define p as an x-y-z array                                         // Here's what needs work added TSPoint p = ts.getPoint();
#define MINPRESSURE 10 // minimum pressure required to register a hit
#define MAXPRESSURE 1000 // maximum pressure required to register a hit (otherwise it has fallen)
#define TS_MINX 110 // define edges of screen v.s. edges of touchlayer
#define TS_MINY 120 // this is ofcourse in PORTRAIT MODE
#define TS_MAXX 930 // later on, a conversion to landscape mode is initiated
#define TS_MAXY 935 // remember this while testing

// Configure GPS settings
Adafruit_GPS GPS(&Serial1);
#define GPSECHO  false

// Assign human-readable names to some common 16-bit color values:
#define	BLACK        0x0000
#define	GREEN        0x07E0
#define RED          0xF800
#define BLUE    0x001F
#define CYAN    0x07FF
#define MAGENTA 0xF81F
#define YELLOW  0xFFE0
#define PINK    0xFCDF
#define WHITE   0xFFFF

// set cout output to Serial
//ArduinoOutStream cout(Serial);
// store error strings in flash to save RAM
#define error(s) sd.errorHalt_P(PSTR(s))

// define default settings for scripts
int hud_color = GREEN; // text color
int background_color = BLACK; // background color
int rotation = 3; // set screen to landscape
int touchx; // create touchx variable
int touchy; // create touchy variable
int touchz; // create touchz variable
boolean passwd = 0; // create passwd boolean with loginattempts counter.
int loginattempts = 0; // set loginattempts to 0, increments on incorrect attempts
boolean mute = 0; // set mute to false
int page = 0; // define page/menu/submenu and set these to 0 (login page)
int menu = 0;
int submenu = 0;
elapsedMillis millicounter_1000;
elapsedMillis millicounter_5000;
elapsedMillis millicounter_10000;
elapsedMillis millicounter_30000;
elapsedMillis millicounter_60000;
int currentminute = 0;
int currentsecond = 0;
int currenthour = 0;
int currentday = 0;
int currentmonth = 0;
int currentyear = 0;
float gps_lat = 0.0; // remember last known gps lat (float)
float gps_lon = 0.0; // remember last known gps lon (float)
char gps_lat2; // remember last known gps lat (char)
char gps_lon2; // remember last known gps lon (char)
float gps_lat_degrees = 0.0;
float gps_lon_degrees = 0.0;
int recalc_lat = 0; // recalculate gps_lat to screen relative location
int recalc_lon = 0; // recalculate gps_lon to screen relative location



// TEST and TEMP SECTION
long randNumber;
long average_randNumber = 0;
int average_counter = 0;
int batterylevel = 100;
boolean charging = 1;
////////////////////////////////////////////
/////// end of INITIAL CONFIGURATION ///////
////////////////////////////////////////////


/////////////////////
/////// SETUP ///////
/////////////////////
void setup(void) {
  Serial1.begin(115200); // connect at 115200 so we can read the GPS fast enough and echo without dropping chars
  // initialize GPS module
  GPS.begin(9600); // 9600 NMEA is the default baud rate for Adafruit MTK GPS's- some use 4800
  GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA); // uncomment this line to turn on RMC (recommended minimum) and GGA (fix data) including altitude
  GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ);   // 1 Hz update rate
  delay(1000);

  // listen to analog pin A13 for random noise values
  randomSeed(analogRead(A13));

  // declare pin 3 as output for speaker:
  pinMode(SPEAKER, OUTPUT);

  // reset and initialize the TFT
  tft.reset();
  // fetch the TFT's ID
  uint16_t identifier = tft.readID();
  // initialize the TFT with proper ID
  tft.begin(identifier);
  // set TFT rotation/orientation to landscape
  tft.setRotation(rotation);

  // initialize the MicroSD adapter
  if (!sd.begin(chipSelect, SPI_FULL_SPEED)) sd.initErrorHalt();

  Page_0(); // goto login page
}

I eagerly copied your code and plugged it into my Arduino system, but alas - I had the same result as you: it didn't work. Bummer.

Your video is dreadfully short of details. Turns out the example you showed is running on a M4 processor - MUCH more memory, flash, and cycles/second than an "Arduino". Maybe post this in the Microprocessors or Collaborations fora instead? I'm sure one of our friendly moderators will be glad to move it for you if you ask.

Looks like you aren't using all the code from https://forum.pjrc.com/attachment.php?attachmentid=250&d=1360957392

There are a bunch of files, including "page_0.ino", "page_1.ino"... If you forgot to put those in your sketch folder it would explain why those Page functions are not defined.

It looks like instead of installing the SdFat library someone just commented out the include and the declaration of 'sd'. That would explain why 'sd' is not defined. Install the SdFat library and un-comment the lines associated with it.

I don't see Adafruit_TFTLCD or TouchScreen in Library Manager and I don't have time to track them down so that is as far as I can help.

Sorry, about the previous posts. I was in a big hurry, I do have the entire code, attached are the sections to it. be mindful that it's several pages long, and I'm using the Teensy 3.2 to handle all of it.

functions.ino (15.5 KB)

loop.ino (25.4 KB)

page_0.ino (2.71 KB)

page_1.ino (15.1 KB)

page_2.ino (2.3 KB)

page_3.ino (2.29 KB)

page_99.ino (477 Bytes)

page_100.ino (3.33 KB)

PIP_GRL_31415_v2.ino (6.16 KB)

has anyone seen what to do

so, they don't know either then.

Like I said in Reply #8: "It looks like instead of installing the SdFat library someone just commented out the include and the declaration of 'sd'. That would explain why 'sd' is not defined. Install the SdFat library and un-comment the lines associated with it."

Have you done that yet? From the source files you posted it appears that you have not.

If you tell me where to find the "Adafruit_TFTLCD" and "TouchScreen" libraries I might be able to compile the sketch and help with you with the piles of other warnings and errors.

Yes I did here is the messages, in short it still declares sd not defined this is after sorting out the libraries
and ass for the tft libraries

it should be there

Arduino: 1.8.5 (Windows 10), TD: 1.41, Board: "Teensy 3.2 / 3.1, Serial, 72 MHz, Faster, US English"

PIP_GRL_31415_v2: In function 'void setup()':
PIP_GRL_31415_v2:157: error: 'sd' was not declared in this scope
if (!sd.begin(chipSelect, SPI_FULL_SPEED)) sd.initErrorHalt();

^

PIP_GRL_31415_v2:159: error: 'Page_0' was not declared in this scope
Page_0(); // goto login page

^

functions: In function 'void checkpass()':
functions:46: error: 'Page_0' was not declared in this scope
Page_0(); // display page 0 again with the new info

^

functions:52: error: 'Page_99' was not declared in this scope
Page_99(); // display Bricked page, nothing is possible anymore...

^

functions:59: error: 'Page_1' was not declared in this scope
Page_1(); // display page 1

^

functions: In function 'void checkpass2(char*, char*, char*, char*, char*)':
functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:70: warning: comparison with string literal results in unspecified behaviour
if (a == "P" && b == "A" && c == "R" && d == "T" && e == "S") {

^

functions:107: error: 'Page_0' was not declared in this scope
Page_0(); // display page 0 again with the new info

^

functions:113: error: 'Page_99' was not declared in this scope
Page_99(); // display Bricked page, nothing is possible anymore...

^

functions:120: error: 'Page_1' was not declared in this scope
Page_1(); // display page 1

^

functions: In function 'void bmpDraw(char*, int, int)':
functions:329: error: 'progmemPrint' was not declared in this scope
progmemPrint(PSTR("Loading image '"));

^

functions:311: warning: unused variable 'bmpWidth'
int bmpWidth, bmpHeight; // W+H in pixels

^

functions:311: warning: unused variable 'bmpHeight'
int bmpWidth, bmpHeight; // W+H in pixels

^

functions:312: warning: unused variable 'bmpDepth'
uint8_t bmpDepth; // Bit depth (currently must be 24)

^

functions:313: warning: unused variable 'bmpImageoffset'
uint32_t bmpImageoffset; // Start of image data in file

^

functions:314: warning: unused variable 'rowSize'
uint32_t rowSize; // Not always = bmpWidth; may have padding

^

functions:316: warning: unused variable 'lcdbuffer'
uint16_t lcdbuffer[BUFFPIXEL]; // pixel out buffer (16-bit per pixel)

^

functions:317: warning: unused variable 'buffidx'
uint8_t buffidx = sizeof(sdbuffer); // Current position in sdbuffer

^

functions:318: warning: unused variable 'goodBmp'
boolean goodBmp = false; // Set to true on valid header parse

^

functions:319: warning: unused variable 'flip'
boolean flip = true; // BMP is stored bottom-to-top

^

functions:320: warning: unused variable 'w'
int w, h, row, col;

^

functions:320: warning: unused variable 'h'
int w, h, row, col;

^

functions:320: warning: unused variable 'row'
int w, h, row, col;

^

functions:320: warning: unused variable 'col'
int w, h, row, col;

^

functions:321: warning: unused variable 'r'
uint8_t r, g, b;

^

functions:321: warning: unused variable 'g'
uint8_t r, g, b;

^

functions:321: warning: unused variable 'b'
uint8_t r, g, b;

^

functions:322: warning: unused variable 'pos'
uint32_t pos = 0, startTime = millis();

^

functions:322: warning: unused variable 'startTime'
uint32_t pos = 0, startTime = millis();

^

functions:323: warning: unused variable 'lcdidx'
uint8_t lcdidx = 0;

^

functions:324: warning: unused variable 'first'
boolean first = true;

^

C:\Users\Hunter\Desktop\E-Droid_v2\PIP_GRL_31415_v2\functions.ino: At global scope:

functions:335: error: expected unqualified-id before 'else'
} else {

^

functions:346: error: expected unqualified-id before 'if'
if(read16(bmpFile) == 0x4D42) { // BMP signature

^

'sd' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Sigma-x:
ass for the tft libraries:

Adafruit GFX library | Adafruit 2.8" TFT Touch Shield v2 - Capacitive or Resistive | Adafruit Learning System

it should be there

It isn't. No links to anything with "TFTLCD" in the name on that page. Try again.

You also forgot to post a link to the "TouchScreen" library.

Sigma-x:

PIP_GRL_31415_v2: In function 'void setup()':

PIP_GRL_31415_v2:157: error: 'sd' was not declared in this scope
   if (!sd.begin(chipSelect, SPI_FULL_SPEED)) sd.initErrorHalt();

Looks like you forgot to un-comment the declaration of 'sd' (near line 41).

whoops sorry bout that
this is what I have

TFTLCD-Library-master.zip (145 KB)

Sigma-x:
whoops sorry bout that
this is what I have

That .zip file does not contain TouchScreen.h

and that may be the problem
I'll get it for you

TouchScreen.cpp (5.46 KB)

TouchScreen.h (1.19 KB)

the attached should be it