Library’s general questions

What make a library work with one board and not another.

I know it’s a general question, but in curious.

Each chip has an instruction set architecture, which can be boiled down to a chip specific language. Think of it as one chip speaks Russian, and needs libraries written in Russian and another chip speaks English and needs English libraries.
Note, this is a massive oversimplification and there's a lot more to it, but that should give you a general idea.
Like you need Windows programs for your Windows computer, and Mac for Mac.

If a library requires a specific processor architecture, that can be written into the "library.properties" file of the library. That will keep the library from even being considered for a sketch being compiled for an unsupported architecture.

For example, if the library uses any hardware features specific to the AVR architecture (ATmega, like the UNO, Nano, or Mega) it should have this line in the library.properties file:

architectures=avr

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.