Advertisement
pleasedontcode

Arduino rev_01

Dec 5th, 2023
94
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: Arduino
  13.     - Source Code compiled for: Arduino Uno
  14.     - Source Code created on: 2023-12-05 23:36:05
  15.     - Source Code generated by: abdarahim
  16.  
  17. ********* Pleasedontcode.com **********/
  18.  
  19. /****** SYSTEM REQUIREMENTS *****/
  20. /****** SYSTEM REQUIREMENT 1 *****/
  21.     /* Arduino code to turn on the LED */
  22. /****** END SYSTEM REQUIREMENTS *****/
  23.  
  24. /****** DEFINITION OF LIBRARIES *****/
  25. #include <Arduino.h>
  26.  
  27. /****** SYSTEM REQUIREMENTS *****/
  28. /****** SYSTEM REQUIREMENT 1 *****/
  29.     /* Arduino code to turn on the LED */
  30. /****** END SYSTEM REQUIREMENTS *****/
  31.  
  32. /****** FUNCTION PROTOTYPES *****/
  33. void setup(void);
  34. void loop(void);
  35.  
  36. /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
  37. const uint8_t LED_PIN = 2; // Define the LED pin as digital output pin 2
  38.  
  39. void setup(void)
  40. {
  41.     // put your setup code here, to run once:
  42.     pinMode(LED_PIN, OUTPUT); // Set the LED pin as output
  43.  
  44. }
  45.  
  46.  
  47. void loop(void)
  48. {
  49.     // put your main code here, to run repeatedly:
  50.     digitalWrite(LED_PIN, HIGH); // Turn on the LED
  51.     delay(1000); // Wait for 1 second
  52.     digitalWrite(LED_PIN, LOW); // Turn off the LED
  53.     delay(1000); // Wait for 1 second
  54.  
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement