Advertisement
pleasedontcode

**Bluetooth Setup** rev_03

Dec 5th, 2024
57
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: **Bluetooth Setup**
  13.     - Source Code NOT compiled for: ESP32 DevKit V1
  14.     - Source Code created on: 2024-12-05 09:49:00
  15.  
  16. ********* Pleasedontcode.com **********/
  17.  
  18. /****** SYSTEM REQUIREMENTS *****/
  19. /****** SYSTEM REQUIREMENT 1 *****/
  20.     /* El sistema utilizará SoftwareSerial para la */
  21.     /* comunicación con el módulo Bluetooth HC-05, */
  22.     /* asegurando una transmisión de datos confiable a */
  23.     /* una velocidad de 9600 baudios utilizando pines TX */
  24.     /* y RX definidos en la placa Arduino. */
  25. /****** END SYSTEM REQUIREMENTS *****/
  26.  
  27. /* START CODE */
  28.  
  29. /****** DEFINITION OF LIBRARIES *****/
  30. #include <SoftwareSerial.h> //https://github.com/plerup/espsoftwareserial
  31.  
  32. /****** FUNCTION PROTOTYPES *****/
  33. void setup(void);
  34. void loop(void);
  35.  
  36. /***** DEFINITION OF Software Serial *****/
  37. const uint8_t paco_HC05_mySerial_PIN_SERIAL_TX_D4 = 4;  // TX pin
  38. const uint8_t paco_HC05_mySerial_PIN_SERIAL_RX_D13 = 13; // RX pin
  39. SoftwareSerial paco_HC05_mySerial(paco_HC05_mySerial_PIN_SERIAL_RX_D13, paco_HC05_mySerial_PIN_SERIAL_TX_D4); // Create SoftwareSerial object
  40.  
  41. void setup(void)
  42. {
  43.     // Initialize the SoftwareSerial communication at 9600 baud rate
  44.     paco_HC05_mySerial.begin(9600); // Start communication
  45. }
  46.  
  47. void loop(void)
  48. {
  49.     // put your main code here, to run repeatedly:
  50. }
  51.  
  52. /* END CODE */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement