This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// first make "pairing" with HC-06 devise | |
// view devises list by running 'ls /dev/tty.* in terminal, you can see /dev/tty.HC-06-DevB on the list | |
// then go to arduino editor, and choose your devise bluetooth under the 'Tools > Serial port' menu | |
// Now open the serial monitor (Tools > Serial monitor). | |
// You should notice that the red led of the bluetooth module has stopped blinking. That means we are connected! | |
// Now when you send a “1” the led on the pin 13 should turn ON, and if you send a “0” it should turn off. | |
void setup() { | |
// initialize serial: |