June-10th-2020, 08:11 AM
You also asked me how to use NPIX-4DI4DO module in a container. All 4 DOs and 4 DIs are connected to standard GPIOs pins of the Raspberry CPU. So you need to know just how to access GPIO in general on netPI/Raspberry Pi.
Here is what you need to know. Since netPI is 100% identical to Raspberr Pi 3B all the chapters found on the Internet like https://raspberrypi-aa.github.io/session2/bash.html also apply for netPI. The example shows how to use GPIOs from command shell and bash scripts. There are also python libraries that can access GPIO signals. Also for Javascript and also for C or C++. So you need to know which language you want to use to access GPIOs.
As next you need to know that accessing hardware specific things on a machine within a container needs special container start parameter so that it can access the hardware. Accessing GPIOs in a container running on netPI needs "privileged" mode enabled and also device "/dev/gpio" mapped.
Thx
Here is what you need to know. Since netPI is 100% identical to Raspberr Pi 3B all the chapters found on the Internet like https://raspberrypi-aa.github.io/session2/bash.html also apply for netPI. The example shows how to use GPIOs from command shell and bash scripts. There are also python libraries that can access GPIO signals. Also for Javascript and also for C or C++. So you need to know which language you want to use to access GPIOs.
As next you need to know that accessing hardware specific things on a machine within a container needs special container start parameter so that it can access the hardware. Accessing GPIOs in a container running on netPI needs "privileged" mode enabled and also device "/dev/gpio" mapped.
Thx
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)