Hardio uses PID as its package management system. This section will explain how
to configure your projet to use hardio with PID.
How to configure a project that uses hardio
When creating a project that uses hardio, you will only have to depend on the
correct Iocard implementation and on each device you are using.
This is the main configuration file for the examples on the Upboard.
You can notice that the dependency to hardiocore and hardioup are in the file,
as well as the dependencies for all the sensors that are used in the package.
Now let’s talk about how one would declare a component in such a package.
When declaring a component, you need to make it depend on the sensors it uses
and the IoCard it uses if an iocard is used.
How to configure a projet to implement a new Iocard
The only dependency when implementing a new Iocard is hardiocore.
Here you can see that appart from the external library mraa, the only
dependency is hardiocore.
When declaring a component, the only needed dependency is also hardiocore
How to configure a project to create a new device
When creating a new device, you will depend on hardiocore and any external
library that is needed for the device.
In this file, the only dependency is hardiocore.
When declaring a component, you have to depend on hardiocore and all necessary
external libraries that the device needs.