Display content through RFID

Hello,

I am trying to connect an Arduino UNO, an OLED display and a joystick. All components are working and cards are read when close to the sensor. However, I am not succeeding fully with the code...

I am trying to program the two tags that came with the RFID sensor to display specific content when each individual tag is read by the sensor. I am very new at this so please have patience but I really wish to get this to work.

I have attached my code to this post.

Thanks and best regards,
Kajsa

RFID_OLED_JOYSTICK.ino (4.49 KB)

I am trying to program the two tags that came with the RFID sensor

It is likely that that are not programmable. The Arduino is, though.

  if(  rfid.PICC_IsNewCardPresent())
  {
      digitalWrite(LED, HIGH);
      display.clearDisplay();
      display.print(planet2);
      i=i+1;
      display.display();
      display.setTextColor(WHITE); // or BLACK);
      display.setTextSize(1);
      display.setCursor(0,0); 
//      display.print("Goodbye");
//      display.display();
//      readRFID();
      delay(2000);
      display.clearDisplay();

  }else{  digitalWrite(LED, LOW);}

If a card is presented, print some hardcoded String on the display, and ignore the card. OK. Why?

NOTHING follows the } on the same line. EVER.

Every } goes on a line by itself. EVERY ONE OF THEM.