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: Serial Transmitter
- - Source Code compiled for: Arduino Nano
- - Source Code created on: 2023-12-10 17:10:36
- ********* Pleasedontcode.com **********/
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* transmit the UUID of the HC05 */
- /****** END SYSTEM REQUIREMENTS *****/
- /****** DEFINITION OF LIBRARIES *****/
- #include <Arduino.h>
- #include <SoftwareSerial.h>
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- /***** DEFINITION OF Software Serial *****/
- const uint8_t HM10_HC05_mySerial_PIN_SERIAL_TX_A0 = A0;
- const uint8_t HM10_HC05_mySerial_PIN_SERIAL_RX_A1 = A1;
- const uint8_t HM10_HC05_mySerial_PIN_SERIAL_TX_A2 = A2;
- const uint8_t HM10_HC05_mySerial_PIN_SERIAL_RX_A3 = A3;
- const uint8_t HM10_HC05_mySerial_PIN_SERIAL_TX_A4 = A4;
- const uint8_t HM10_HC05_mySerial_PIN_SERIAL_RX_A5 = A5;
- SoftwareSerial HM10_HC05_mySerial1(HM10_HC05_mySerial_PIN_SERIAL_RX_A1, HM10_HC05_mySerial_PIN_SERIAL_TX_A0);
- SoftwareSerial HM10_HC05_mySerial2(HM10_HC05_mySerial_PIN_SERIAL_RX_A3, HM10_HC05_mySerial_PIN_SERIAL_TX_A2);
- SoftwareSerial HM10_HC05_mySerial3(HM10_HC05_mySerial_PIN_SERIAL_RX_A5, HM10_HC05_mySerial_PIN_SERIAL_TX_A4);
- void setup(void)
- {
- // put your setup code here, to run once:
- HM10_HC05_mySerial1.begin(9600);
- HM10_HC05_mySerial2.begin(9600);
- HM10_HC05_mySerial3.begin(9600);
- }
- void loop(void)
- {
- // put your main code here, to run repeatedly:
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* transmit the UUID of the HC05 */
- HM10_HC05_mySerial1.print("UUID: XXXXXXXX"); // Replace "XXXXXXXX" with the actual UUID value
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement