Go Down

Topic: 'getID' was not declared in this scope (Read 127 times) previous topic - next topic

dtdtdrytdty

Nov 19, 2019, 02:50 am Last Edit: Nov 20, 2019, 03:04 am by dtdtdrytdty
the new post is at bottom.

SteveMann

Please read "Read this before posting a programming question" at the top of the forum.

I already see the problem in your code, but I want you to post it correctly first.  I could be wrong, but I really doubt it.

dtdtdrytdty

#2
Nov 20, 2019, 12:20 am Last Edit: Nov 20, 2019, 12:23 am by dtdtdrytdty
i dont know how to get it correct please help

gfvalvo

#3
Nov 20, 2019, 12:26 am Last Edit: Nov 20, 2019, 12:28 am by gfvalvo
i dont know how to get it correct please help
Read this: Read this before posting a programming question ... -- Note the clever title. What does it tell you?
Pay particular attention to Item #6.
No technical questions via PM. They will be ignored. Post your questions in the forum so that all may learn.



dtdtdrytdty

Sorry this is what i should have said

The error i got when coding this was "'getID' was not declared in this scope"
Code: [Select]

#include <SPI.h>
#include <MFRC522.h>
#include <LiquidCrystal.h>
#include <Servo.h>
#define RST_PIN   9
#define SS_PIN    10
byte readCard[4];
char* myTags[100] = {};
int tagsCount = 0;
String tagID = "";
boolean successRead = false;
boolean correctTag = false;
int proximitySensor;
boolean doorOpened = false;
// Create instances
MFRC522 mfrc522(SS_PIN, RST_PIN);
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); //Parameters: (rs, enable, d4, d5, d6, d7)
Servo myServo; // Servo motor
void setup() {
  // Initiating
  SPI.begin();        // SPI bus
  mfrc522.PCD_Init(); //  MFRC522
  lcd.begin(16, 2);   // LCD screen
  myServo.attach(8);  // Servo motor
  myServo.write(10); // Initial lock position of the servo motor
  // Prints the initial message
  lcd.print("-No Master Tag!-");
  lcd.setCursor(0, 1);
  lcd.print("    SCAN NOW");
  // Waits until a master card is scanned
  while (!successRead) {
    successRead = getID();




DangerToMyself

Possibly.

But I think they may need to see more than just a snippet of your code. Or is it Top Secret?

Go Up