beniroquai / dSTORM-on-a-Chi-ea-p

4 stars 0 forks source link

Error by compiling the PS3/PS4 Controller library #1

Open ranranking opened 2 years ago

ranranking commented 2 years ago

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:

  1. Go to the library folder, e.g. C:\Users\xxx\Documents\Arduino\libraries\PS4-esp32-master\src
  2. Edit file ps4_spp.c comment out Line 86,87,88,90 such as // esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_NON_DISCOVERABLE);
  3. Edit file PS4Controller.cpp, add a line at line 44 with #define ESP_BD_ADDR_STR "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"

Now you should be able to compile your code

beniroquai commented 2 years ago

Hey @ranranking thanks for trying out the code. Can we move the conversation here: https://github.com/openUC2/UC2-REST? This is the place for the ESP32/Arduino Firmware. Just copy-paste the stuff above and open a new issue please :)