Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********* 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: Irsensor
- - Source Code compiled for: Arduino Uno
- - Source Code created on: 2023-12-06 13:39:31
- - Source Code generated by: Vedant
- ********* Pleasedontcode.com **********/
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* Create an animation of 3d cude on the display */
- /****** SYSTEM REQUIREMENT 2 *****/
- /* Create an animation of 3d cude on the display */
- /****** END SYSTEM REQUIREMENTS *****/
- /****** DEFINITION OF LIBRARIES *****/
- #include <Arduino.h>
- #include <Wire.h>
- #include <Adafruit_SSD1306.h>
- #include <U8g2_for_Adafruit_GFX.h>
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- /***** DEFINITION OF I2C PINS *****/
- const uint8_t Irsensor_SSD1306OledDisplay_I2C_PIN_SDA = A4;
- const uint8_t Irsensor_SSD1306OledDisplay_I2C_PIN_SCL = A5;
- const uint8_t Irsensor_SSD1306OledDisplay_I2C_SLAVE_ADDRESS = 0x3C;
- /****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/
- Adafruit_SSD1306 display(Irsensor_SSD1306OledDisplay_I2C_SLAVE_ADDRESS);
- U8G2_FOR_ADAFRUIT_GFX u8g2_for_adafruit_gfx;
- void setup(void)
- {
- // put your setup code here, to run once:
- display.begin(SSD1306_SWITCHCAPVCC, Irsensor_SSD1306OledDisplay_I2C_PIN_SDA, Irsensor_SSD1306OledDisplay_I2C_PIN_SCL);
- u8g2_for_adafruit_gfx.begin(display);
- display.display();
- delay(2000);
- display.clearDisplay();
- }
- void loop(void)
- {
- // put your main code here, to run repeatedly:
- // Animation of a 3D cube
- // System Requirement 1
- // TODO: Add code for 3D cube animation
- // Animation of a 3D cube
- // System Requirement 2
- // TODO: Add code for 3D cube animation
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement