Keyestudio 4WD Bluetooth Multi-functional Car Manual page 57

Hide thumbs Also See for 4WD Bluetooth Multi-functional Car:
Table of Contents

Advertisement

Sample Code:
*******************************************************************************
int val;
int ledpin=13;
void setup()
{
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
}
void loop()
{ val=Serial.read();
if(val=='a')
{
digitalWrite(ledpin,HIGH);
delay(250);
digitalWrite(ledpin,LOW);
delay(250);
Serial.println("keyestudio");
}
}
*******************************************************************************
Result
After power-on, power indicator D1 is on, and LED on Bluetooth module is blinking; open Bluetooth on mobile phone, pair them, input 1234, and finish pairing as
shown in Figure 1 ; open APP—Bluetooth serial communication assistant, connect it to Bluetooth, select normal mode, complete connection, and LED on
keyestudio
www.keyestudio.com
55

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 4WD Bluetooth Multi-functional Car and is the answer not in the manual?

Related Products for Keyestudio 4WD Bluetooth Multi-functional Car

Table of Contents

Save PDF