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: Arduino Pins
- - Source Code NOT compiled for: ESP32 DevKit V1
- - Source Code created on: 2024-04-28 22:09:53
- ********* Pleasedontcode.com **********/
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* керування світлодіодами з телефону */
- /****** END SYSTEM REQUIREMENTS *****/
- /****** DEFINITION OF LIBRARIES *****/
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- void updateOutputs(void); // Add function prototype for updateOutputs
- /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
- const uint8_t LED_PIN_D4 = 4;
- const uint8_t LED_PIN_D13 = 13;
- const uint8_t LED_PIN_D14 = 14;
- const uint8_t LED_PIN_D16 = 16;
- /***** DEFINITION OF OUTPUT RAW VARIABLES *****/
- bool LED_PIN_D4_rawData = 0;
- bool LED_PIN_D13_rawData = 0;
- bool LED_PIN_D14_rawData = 0;
- bool LED_PIN_D16_rawData = 0;
- /***** DEFINITION OF OUTPUT PHYSICAL VARIABLES *****/
- float LED_PIN_D4_phyData = 0.0;
- float LED_PIN_D13_phyData = 0.0;
- float LED_PIN_D14_phyData = 0.0;
- float LED_PIN_D16_phyData = 0.0;
- /****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/
- void setup(void)
- {
- // put your setup code here, to run once:
- pinMode(LED_PIN_D4, OUTPUT);
- pinMode(LED_PIN_D13, OUTPUT);
- pinMode(LED_PIN_D14, OUTPUT);
- pinMode(LED_PIN_D16, OUTPUT);
- }
- void loop(void)
- {
- // put your main code here, to run repeatedly:
- updateOutputs(); // Refresh output data
- }
- void updateOutputs(void)
- {
- digitalWrite(LED_PIN_D4, LED_PIN_D4_rawData);
- digitalWrite(LED_PIN_D13, LED_PIN_D13_rawData);
- digitalWrite(LED_PIN_D14, LED_PIN_D14_rawData);
- digitalWrite(LED_PIN_D16, LED_PIN_D16_rawData);
- }
- /* END CODE */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement