Advertisement
pleasedontcode

asd rev_13

Oct 14th, 2023
48
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: asd
  13.     - Source Code compiled for: Arduino Mega
  14.     - Source Code created on: 2023-10-14 15:10:23
  15.     - Source Code generated by: AlexWind
  16.  
  17. ********* Pleasedontcode.com **********/
  18. /****** DEFINITION OF LIBRARIES *****/
  19. #include <Arduino.h>
  20. #include <SoftwareSerial.h>
  21.  
  22. /****** SYSTEM REQUIREMENT 1 *****/
  23. /* Subsystem Requirement 1: Initialize Hardware Serial and Software Serial */
  24.  
  25. /****** FUNCTION PROTOTYPES *****/
  26. void setup(void);
  27. void loop(void);
  28.  
  29. /***** DEFINITION OF Hardware Serial *****/
  30. HardwareSerial& seriale = Serial1; // Define Hardware Serial object
  31.  
  32. /***** DEFINITION OF Software Serial *****/
  33. SoftwareSerial softwareSerial(10, 11); // Define Software Serial object with RX and TX pins
  34.  
  35. void setup(void)
  36. {
  37.   // put your setup code here, to run once:
  38.   seriale.begin(19200); // Initialize Hardware Serial with baud rate 19200
  39.   softwareSerial.begin(9600); // Initialize Software Serial with baud rate 9600
  40.  
  41.   // Add any additional setup code here
  42.  
  43. }
  44.  
  45.  
  46. void loop(void)
  47. {
  48.   // put your main code here, to run repeatedly:
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement