Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Platform Libraries

Timor Gruber edited this page Dec 30, 2018 · 3 revisions

These libraries are provided with the hardware platform being used (usually just Arduino), and are typically essential to any development with the platform. Common examples are SPI, Wire, etc.

Arduino-CMake acknowledges that these libraries are essential, thus it provides a convenient way to use them in your application.
In order to use a platform library, one should simply link it to a target, usually the Arduino executable.

The following example shows how to use the SPI platform library:

link_platform_library(my_target SPI ${board_id})

Note that the example above assumes the my_target target has already been created earlier.
Also, board's ID has been retrieved as well.

Clone this wiki locally
Morty Proxy This is a proxified and sanitized view of the page, visit original site.