Skip to content

Troubleshooting cant compile with ps3/ps4Controller library #4

@ranranking

Description

@ranranking

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions