

This article complies to the Typographic Conventions for Torizon Documentation. Please refer to the dedicated article How to Import a C/C++ Application to Torizon, but before you do it, it is still recommended that you go through the current article steps and create a hello world, to get used to the Torizon practical workflow. You can learn more about the libgpiod examples and API calls on How to Use GPIO on TorizonCore: C Language Examples.

If you are actually interested in using a GPIO in C, after going through this article you can replace the hello-world source-code with the GPIO example in C provided in our torizon-samples repository, disregarding the Dockerfiles. Grant hardware access to the GPIO banks.It is a good use case because you have to:

Through the article, we configure the project as if we want to use a GPIO. It briefs on how to create a new project, add development libraries to the SDK and runtime libraries to the target, switch between debug and release configuration, and more. This article explains How to do C/C++ Development on Torizon, including running and debugging applications on the device, using the Visual Studio Code Extension for Torizon. Is this page helpful? C/C++ Development and Debugging on TorizonCore Using Visual Studio Code Introduction
