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: asd
- - Source Code compiled for: Arduino Mega
- - Source Code created on: 2023-10-14 15:10:23
- - Source Code generated by: AlexWind
- ********* Pleasedontcode.com **********/
- /****** DEFINITION OF LIBRARIES *****/
- #include <Arduino.h>
- #include <SoftwareSerial.h>
- /****** SYSTEM REQUIREMENT 1 *****/
- /* Subsystem Requirement 1: Initialize Hardware Serial and Software Serial */
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- /***** DEFINITION OF Hardware Serial *****/
- HardwareSerial& seriale = Serial1; // Define Hardware Serial object
- /***** DEFINITION OF Software Serial *****/
- SoftwareSerial softwareSerial(10, 11); // Define Software Serial object with RX and TX pins
- void setup(void)
- {
- // put your setup code here, to run once:
- seriale.begin(19200); // Initialize Hardware Serial with baud rate 19200
- softwareSerial.begin(9600); // Initialize Software Serial with baud rate 9600
- // Add any additional setup code here
- }
- void loop(void)
- {
- // put your main code here, to run repeatedly:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement