Thanks for the platformio.ini!
Please use pre-formatted text when posting code or logs for better readability.
This library does not match your setup!
You’re using framework “Arduino” but this library is for framework “mbed”
See PlatformIO Registry
You have to use a library that match your framework. Choose one of these: PlatformIO Registry