Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I've tried to get my ESP32 LOLIN32 with Arduino framework working, but I can't even upload code to it. I'm including nothing but Arduino and I2S but it doesn't understand what I mean with I2S.
I have only written:
#include <I2S.h>
#include <Arduino.h>
void setup(){
void loop(){
but it fails to compile and gives:
src\main.cpp:1:17: fatal error: I2S.h: No such file or directory
*************************************************************
* Looking for I2S.h dependency? Check our library registry!
* CLI > platformio lib search "header:I2S.h"
* Web > https://registry.platformio.org/search?q=header:I2S.h
*************************************************************
Arduino IDE can't find it eather, I get the same error.
I've tried adding build_flags = -I and lib_deps in platform.ini:
[env:lolin32]
platform = espressif32
board = lolin32
framework = arduino
build_flags = -I include
lib_deps =
to no avail.
I2S.h was added to arduino-esp32 from version 2.0.3-RC1.
The OP does not describe the used version, but I guess it is older than the mentioned 2.0.3
I suggest updating arduino-esp32
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.