/********* 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 Bluetooth - Source Code compiled for: Arduino Nano - Source Code created on: 2023-12-10 07:40:56 ********* Pleasedontcode.com **********/ /****** SYSTEM REQUIREMENTS *****/ /****** SYSTEM REQUIREMENT 1 *****/ /* transmit the UUID of the HC05 */ /****** END SYSTEM REQUIREMENTS *****/ /****** DEFINITION OF LIBRARIES *****/ #include #include /****** FUNCTION PROTOTYPES *****/ void setup(void); void loop(void); /***** DEFINITION OF Software Serial *****/ const uint8_t HM10_HC05_mySerial_PIN_SERIAL_RX_A1 = A1; const uint8_t HM10_HC05_mySerial_PIN_SERIAL_TX_A0 = A0; SoftwareSerial HM10_HC05_mySerial(HM10_HC05_mySerial_PIN_SERIAL_RX_A1, HM10_HC05_mySerial_PIN_SERIAL_TX_A0); /****** SYSTEM REQUIREMENTS *****/ /*** SYSTEM REQUIREMENT 1: Transmit the UUID of the HC05 ***/ const char* UUID = "A1B2C3D4E5F6"; void setup(void) { // setup code here, runs once: HM10_HC05_mySerial.begin(9600); } void loop(void) { // main code here, runs repeatedly: /*** SYSTEM REQUIREMENT 1 ***/ // Send the UUID of the HC05 HM10_HC05_mySerial.write(UUID); delay(1000); }