Code: Select all
#include <PS4Controller.h>
void setup() {
Serial.begin(115200);
Serial.println("Initialization ready!");
PS4.begin("01:01:01:01:01:01");
//example MAC address
// put your setup code here, to run once:
}
void loop() {
if(PS4.isConnected()) {
Serial.println("Controller connected");
}
delay(1000);
// put your main code here, to run repeatedly:
}