A0 was not defined in this scope



  • I'm trying to use some libraries that apparently have a call to "analogRead(A0);" which is also apparently not defined. Is there any way to work around this? I tried doing #define A0 32; before the library is included but that didn't help.


  • M5Stack

    @joeybab3 It seems those libraries you used are designed for Arduino Chip which has been defined A0. So you need change those libraries sources so that they are compatible with ESP32 chip.