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: **Bluetooth Setup**
- - Source Code NOT compiled for: ESP32 DevKit V1
- - Source Code created on: 2024-12-05 09:49:00
- ********* Pleasedontcode.com **********/
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* El sistema utilizará SoftwareSerial para la */
- /* comunicación con el módulo Bluetooth HC-05, */
- /* asegurando una transmisión de datos confiable a */
- /* una velocidad de 9600 baudios utilizando pines TX */
- /* y RX definidos en la placa Arduino. */
- /****** END SYSTEM REQUIREMENTS *****/
- /* START CODE */
- /****** DEFINITION OF LIBRARIES *****/
- #include <SoftwareSerial.h> //https://github.com/plerup/espsoftwareserial
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- /***** DEFINITION OF Software Serial *****/
- const uint8_t paco_HC05_mySerial_PIN_SERIAL_TX_D4 = 4; // TX pin
- const uint8_t paco_HC05_mySerial_PIN_SERIAL_RX_D13 = 13; // RX pin
- SoftwareSerial paco_HC05_mySerial(paco_HC05_mySerial_PIN_SERIAL_RX_D13, paco_HC05_mySerial_PIN_SERIAL_TX_D4); // Create SoftwareSerial object
- void setup(void)
- {
- // Initialize the SoftwareSerial communication at 9600 baud rate
- paco_HC05_mySerial.begin(9600); // Start communication
- }
- void loop(void)
- {
- // put your main code here, to run repeatedly:
- }
- /* END CODE */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement