HC-05 Bluetooth Test Mega by lfmiller27

Cloned from Sketch HC-05 Bluetooth Test Mega by zang206

dl
Basic sketch with commands for the HC-05 for working in either master or slave mode. See comments for master/slave options. Sketch is for an Arduino Mega 2560 because I used a second hardware serial UART instead of the SoftwareSerial library.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:154764" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>