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.