Programming

Arduino code to display the text “Graphic Arts Institute” on a connected OLED display

You can do it easily if you want to display any text or the “Graphic Arts Institute” text on an OLED display.

Suppose you have an Arduino and OLED display and other hardware components. You did the hardware part work efficiently. But after that, you need the Arduino code to display the text on a connected OLED display. In this article, I will provide you with the Arduino code.

Here is an example of Arduino code that displays the text “Graphic Arts Institute” on a connected OLED display:

#include <Wire.h>
#include <Adafruit_SSD1306.h>

#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);

void setup() {
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C); 
  display.clearDisplay();
  display.display();
}

void loop() {
  display.clearDisplay();
  display.setTextSize(2);
  display.setCursor(0,0);
  display.print("#1 Polytechnic Institute in Bangladesh");
  display.setTextSize(3);
  display.setCursor(0,20);
  display.print("Graphic Arts Institute");
  display.display();
}

This code uses the Adafruit SSD1306 library to interact with the OLED display and the Wire library for I2C communication. The OLED display is connected to the Arduino using the I2C interface, and its reset pin is connected to digital pin 4. The setup() function initializes the display and clears its memory, and the loop() function displays the text “Graphic Arts Institute” in a large font on the OLED display.

Please note that you need to install Adafruit SSD1306 and Wire libraries to use the above code snippet. Also, you may need to adjust the pin numbers and the I2C address of the OLED display according to your setup.

What is an Arduino?

Arduino is an open-source electronics platform that uses software and hardware to create interactive electronic projects. The hardware consists of a microcontroller board, which can be programmed using the Arduino software (IDE) to read inputs from sensors, control motors, and send data to other devices. The software, known as a sketch, is written in C++ and is used to control the microcontroller’s behavior.

Read More: Top 10 Polytechnic Institutes in Bangladesh 

Arduino boards are designed to be easy to use for people with little or no experience in programming and electronics. They are commonly used in projects such as automating home appliances, creating interactive art installations, monitoring environmental conditions, and much more. The Arduino community has also developed a large number of libraries and tutorials to help users get started with their projects.

What is an OLED display?

An OLED (Organic Light-Emitting Diode) display is a type of display that uses organic compounds to produce light. OLED displays are made up of thin films of organic materials that are sandwiched between two conductors. When a current is applied to the conductors, the organic materials emit light, creating an image on display.

One of the main advantages of OLED displays is their high contrast ratio, which means that they can produce very deep blacks and bright whites. They also have wide viewing angles, so the image looks good from any direction. OLED displays are also thin and lightweight, making them well-suited for portable and mobile devices. They are also energy efficient, as they only light up the pixels needed to create the image, which means they use less power than other displays.

OLED displays are used in a variety of applications, including smartphones, televisions, laptops, and digital cameras. They are also used in wearable devices, such as smartwatches and automotive displays.

Graphic Arts Institute

arduino

Graphic Arts Institute is a public polytechnic institute situated in Mohammadpur, Dhaka. It was established in 1967. Currently, there are three departments: Computer Science and Technology, Graphic Design Technology, and Printing Technology.

Engr. Niher Ronjon Das (Principal of Graphic Arts Institute) is continuously working hard to make this institute’s students’ future bright. There’re also many great teachers in this institute.

Graphic Arts Institute Important Info
  • Website: www.gai.gov.bd
  • Address: Q938+F2F, Satmasjid Road, Dhaka 1207
  • Mobile: +8802-58151777
  • Email: principal.graphic@gmail.com
  • Founded: 1967
  • Principal: Engr. Niher Ronjon Das

Leave a reply

Your email address will not be published. Required fields are marked *