Coder Social home page Coder Social logo

Comments (5)

wltue avatar wltue commented on July 24, 2024 1

Your a Arduino Legend, thanks for all your work within the years :-)

from mcp23008.

RobTillaart avatar RobTillaart commented on July 24, 2024

This is a known problem with the Arduino Nano ESP32, imho a bug.

By renaming well known function names with macros the compiler also renames functions that are members of a class.
The Preprocessor which executes the macros (text replacements) does not know any bit of code context.
This is both a gift and horror. In this case the latter.

It is NOT an ESP32 problem as other ESP32 based boards do not have this problem.
It is definitely an Arduino NANO software design problem.

from mcp23008.

RobTillaart avatar RobTillaart commented on July 24, 2024

PS,
I find it strange that you need to replace pinMode8() too as that is not in the io_pin_remap.h file

I would rename to pinMode1(), digitalWrite1(), digitalRead1(), just adding the number of bits used.
That would keep it readable and is informative.

from mcp23008.

wltue avatar wltue commented on July 24, 2024

Thanks. Just very busy atm. Sorry for mistakes in my report.

from mcp23008.

RobTillaart avatar RobTillaart commented on July 24, 2024

No need to apologize,
This kind of reports are appreciated as they help to define the scope of the libraries.
For me, I have made an action point to check all my 200+ libraries for this and add a section to the readme.

from mcp23008.

Related Issues (6)

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.