Advertisement
pleasedontcode

homeAuto1 rev_01

Oct 23rd, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /********* Pleasedontcode.com **********
  2.  
  3.     Pleasedontcode thanks you for automatic code generation! Enjoy your code!
  4.  
  5.     - Terms and Conditions:
  6.     You have a non-exclusive, revocable, worldwide, royalty-free license
  7.     for personal and commercial use. Attribution is optional; modifications
  8.     are allowed, but you're responsible for code maintenance. We're not
  9.     liable for any loss or damage. For full terms,
  10.     please visit pleasedontcode.com/termsandconditions.
  11.  
  12.     - Project: homeAuto1
  13.     - Source Code compiled for: Arduino Nano
  14.     - Source Code created on: 2023-10-23 14:07:09
  15.     - Source Code generated by: Tochi
  16.  
  17. ********* Pleasedontcode.com **********/
  18. /****** DEFINITION OF LIBRARIES *****/
  19. #include <Arduino.h>
  20.  
  21. /****** FUNCTION PROTOTYPES *****/
  22. void setup(void);
  23. void loop(void);
  24.  
  25. /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
  26. const uint8_t LED_PIN = 2;
  27.  
  28. void setup(void)
  29. {
  30.   // Initialize the LED pin as an output
  31.   pinMode(LED_PIN, OUTPUT);
  32. }
  33.  
  34. void loop(void)
  35. {
  36.   // Turn on the LED
  37.   digitalWrite(LED_PIN, HIGH);
  38.  
  39.   // Delay for 1 second
  40.   delay(1000);
  41.  
  42.   // Turn off the LED
  43.   digitalWrite(LED_PIN, LOW);
  44.  
  45.   // Delay for 1 second
  46.   delay(1000);
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement