Include multiple libraries from Githuub

Hi, I’m very, very new to working with microcontrollers. I’m using the ESP32 for a school project, and I’d like to use these three libraries from Github in my main.c:

  1. https ://github.com/arduino-libraries/NTPClient.git
  2. GitHub - PaulStoffregen/Time: Time library for Arduino
  3. GitHub - agnunez/ESP8266-I2C-LCD1602: Library to control LCD1602 Liquid Crystal Displays like from ESP8266 mcu's through I2C bus

I’ve tried using the lib_deps in platformio.ini, and I’ve tried downloading the zip file onto my computer and copying that path into ‘include path’ as per the quick fix suggestion. It didn’t work, so is there any other way to do this?

Thanks in advance

If you’re using an ESP32 you don’t need the first two libraries. The NTP functionality is builtin. See this sketch: Wokwi - Online ESP32, STM32, Arduino Simulator

The third library is for ESP8266 and I am not sure if this is compatible to ESP32. Maybe you should use this library instead: GitHub - RobTillaart/I2C_LCD: Arduino library for I2C LCD displays e.g. 20x4

I hope this is a type and you meant main.cpp instead main.c. Otherwise you might run into some issues.

Always show the content of your platformio.ini as we don’t know it.

What exactly did not work? It is always helpful to show the error message as we don’t know it. Otherwise we can just do guesswork.