// Pass ans Pass Plus Task
#include <Wire.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
Adafruit_SSD1306 display(128, 64, &Wire, -1);
const char Student_Id[] PROGMEM = {"103798065"};
const char Student_Name[] PROGMEM = {"Aarush Singh"};
const char Unit_Id[] PROGMEM = {"ENG20009"};
const char Unit_Name[] PROGMEM = {"Engineering Technology Inquiry Project"};
const char Sem[] PROGMEM = {"Semester 1"};
const char Year[] PROGMEM = {"2023"};
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, 0X3C);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0,0);
for (int i = 0; i < strlen(Student_Id); i++) {
char a = pgm_read_byte_near(Student_Id + i);
display.print(a);
}
// Displaying the Student Name.
display.setCursor(0, 10);
for (int i = 0; i < strlen(Student_Name); i++) {
char b = pgm_read_byte_near(Student_Name + i);
display.print(b);
}
// Displaying the unit id.
display.setCursor(0, 20);
for (int i = 0; i < strlen(Unit_Id); i++) {
char c = pgm_read_byte_near(Unit_Id + i);
display.print(c);
}
// Displaying the Name of the unit.
display.setCursor(0, 30);
for (int i = 0; i < strlen(Unit_Name); i++) {
char d = pgm_read_byte_near(Unit_Name + i);
display.print(d);
}
// Displaying the semester.
display.setCursor(0, 48);
for (int i = 0; i < strlen(Sem); i++) {
char e = pgm_read_byte_near(Sem + i);
display.print(e);
}
// Displaying the year.
display.setCursor(0, 56);
for (int i = 0; i < strlen(Year); i++) {
char f = pgm_read_byte_near(Year + i);
display.print(f);
}
display.display();
delay(500);
display.startscrollleft(0x00, 0x0F);
}
void loop() {
}