/********* 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: Analog Clock
- Source Code NOT compiled for: ESP32 DevKit V1
- Source Code created on: 2024-05-03 03:58:31
********* Pleasedontcode.com **********/
/****** SYSTEM REQUIREMENTS *****/
/****** SYSTEM REQUIREMENT 1 *****/
/* Analog clock show time */
/****** SYSTEM REQUIREMENT 2 *****/
/* Clock hands, white background, black clock hands, */
/* blue second hands, yellow minute hands */
/****** END SYSTEM REQUIREMENTS *****/
/****** DEFINITION OF LIBRARIES *****/
#include
#include // https://github.com/stblassitude/Adafruit_SSD1306_Wemos_OLED.git
/****** FUNCTION PROTOTYPES *****/
void setup(void);
void loop(void);
/***** DEFINITION OF I2C PINS *****/
const uint8_t Vg_SSD1306OledDisplay_I2C_PIN_SDA_D21 = 21;
const uint8_t Vg_SSD1306OledDisplay_I2C_PIN_SCL_D22 = 22;
const uint8_t Vg_SSD1306OledDisplay_I2C_SLAVE_ADDRESS = 60;
/****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/
Adafruit_SSD1306 display(Vg_SSD1306OledDisplay_I2C_PIN_SDA_D21, Vg_SSD1306OledDisplay_I2C_PIN_SCL_D22);
void setup(void)
{
// put your setup code here, to run once:
display.begin(SSD1306_SWITCHCAPVCC, Vg_SSD1306OledDisplay_I2C_SLAVE_ADDRESS);
}
void loop(void)
{
// put your main code here, to run repeatedly:
// Analog clock show time
// Clock hands: white background, black clock hands, blue second hands, yellow minute hands
}
/* END CODE */