Open ranranking opened 2 years ago
Hey @beniroquai I checked the library, it seems you already modified the code i mentioned there. The library is the one i used, only one small mistake, in ps4_spp.c the line 89 should not be comment out. Thats why i wrote them separately. :) Other than that is everything fine
Great. Would you mind having a look at this program and try it out with your current system? https://github.com/openUC2/UC2-REST/tree/master/ESP32/REST_API_JSON_Serial_Wifi_motor_PS3_v0. It should work with PS4 controllers. Also if something is unclear, please add any comments so that I can add it to the documentation! :-)
It works with my controller now. There are three points i found:
digitalWrite(ENABLE,LOW);
at Line 234 in run_motor()
from control_PS4.ino. Add enable at somewhere with your style?Hey @ranranking Thanks for trying it out!
There are compile issue to use the ps3 or ps4Controller library. The Error is written as 'Error compiling for the board esp32 DEV Module'. The problem is the library only compatible with old version of the ESP libaray. Solution is listed as in here
Short summary:
// esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_NON_DISCOVERABLE);
#define ESP_BD_ADDR_STR "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"
Now you should be able to compile your code