/********* Pleasedontcode.com **********
Pleasedontcode thanks you for automatic code generation! Enjoy your code!
- Terms and Conditions:
You have a non-exclusive, revocable, worldwide, royalty-free license
for personal and commercial use. Attribution is optional; modifications
are allowed, but you're responsible for code maintenance. We're not
liable for any loss or damage. For full terms,
please visit pleasedontcode.com/termsandconditions.
- Project: hamza
- Source Code compiled for: Arduino Uno
- Source Code created on: 2023-10-20 06:22:07
- Source Code generated by: Hamza
********* Pleasedontcode.com **********/
/****** DEFINITION OF LIBRARIES *****/
#include
#include
#include
/****** SYSTEM REQUIREMENT 1 *****/
/* m;ggxz ldg */
/****** FUNCTION PROTOTYPES *****/
void setup(void);
void loop(void);
/***** DEFINITION OF I2C PINS *****/
const uint8_t OLED_DISPLAY_SDA_PIN = A4;
const uint8_t OLED_DISPLAY_SCL_PIN = A5;
const uint8_t OLED_DISPLAY_SLAVE_ADDRESS = 0x3C;
Adafruit_SSD1306 display(128, 64, &Wire, OLED_DISPLAY_SDA_PIN, OLED_DISPLAY_SCL_PIN);
void setup(void)
{
// Initialize I2C communication
Wire.begin();
// Initialize OLED display
display.begin(SSD1306_SWITCHCAPVCC, OLED_DISPLAY_SLAVE_ADDRESS);
display.clearDisplay();
display.setTextColor(WHITE);
display.setTextSize(1);
display.setCursor(0, 0);
display.println("Hello, world!");
display.display();
}
void loop(void)
{
// put your main code here, to run repeatedly:
}