Components required:
Circuit Diagram:
Arrange the circuit as shown in the image.
Arduino Code:
Code:
#include <SoftwareSerial.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels #define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); SoftwareSerial mySerial (10,9); //(RX, TX); String val = "No Data"; String oldval; String newval = "No Data"; int i = 0; void setup() { // put your setup code here, to run once: mySerial.begin(9600); Serial.begin(9600); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //initialize with the I2C addr 0x3C (128x64) delay(2000); //Printing the Name "NOTICE BOARD" on OLED display.clearDisplay(); display.setTextSize(2); display.setTextColor(WHITE); display.setCursor(20, 20); display.print("Notice"); display.setCursor(20, 40); display.print("Board"); display.display(); delay(3000); }
Output:
Please enter your email address to receive your cart as a PDF.
Username or Email Address
Password
Remember Me