Coder Social home page Coder Social logo

Missing define on ESP32 about control-surface HOT 3 CLOSED

tttapa avatar tttapa commented on July 20, 2024
Missing define on ESP32

from control-surface.

Comments (3)

tttapa avatar tttapa commented on July 20, 2024 1

What ESP32 board are you using? Most of them have LED_BUILTIN defined, but apparently yours does not.
I added a check to see if it's defined, so it no longer fails to compile, but keep in mind that there will be no visual feedback when an error occurs, it'll just stop working.

If this happens, enable DEBUG_OUT in src/Settings/Settings.hpp and upload the code again. It will then print the error message.

If your board doesn't have a LED_BUILTIN, the following warning will be produced:

#warning "LED_BUILTIN is not available, so it cannot blink when an error occurs"

from control-surface.

tttapa avatar tttapa commented on July 20, 2024

By the way, if your ESP32 board has a built-in LED, but it's not defined by the Arduino Core, you can open an issue or a pull request on espressif/arduino-esp32.

For example, this is the pins_arduino.h file of a board that is configured correctly:
https://github.com/espressif/arduino-esp32/blob/79e4339582ca0891a6e6e35220c90db613c0254d/variants/esp32thing/pins_arduino.h#L14-L15

from control-surface.

tarTG avatar tarTG commented on July 20, 2024

Thanks for the fast fix.

from control-surface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.