#include <Ps3Controller.h>
Serial.begin(115200);
Then we are going to call the begin method on our Ps3 extern variable. As input of this method we need to pass the Bluetooth address stored in the controller, as a string."00:11:22:33:ff:ee"
Ps3.begin("YourDeviceAddress");
void setup()
{
Serial.begin(115200);
Ps3.begin("YourDeviceAddress");
Serial.println("Initialization finished.");
}
if (Ps3.isConnected()){
Serial.println("Controller connected!");
}
void loop()
{
if (Ps3.isConnected()){
Serial.println("Controller connected!");
}
delay(1000);
}
#include <Ps3Controller.h>
void setup()
{
Serial.begin(115200);
Ps3.begin("YourDeviceAddress");
Serial.println("Initialization finished.");
}
void loop()
{
if (Ps3.isConnected()){
Serial.println("Controller connected!");
}
delay(1000);
}