![]() |
rasProject_01 / weSweetHome
R. 116 2026-05-14
process control / RasPi software by weinert-automation
|
A simple output program for Raspberry's GPIO pins. More...
#include "arch/config.h"#include <stdlib.h>#include <stdio.h>#include <pigpio.h>#include <pigpiod_if2.h>#include <unistd.h>#include <signal.h>#include "weGPIOd.h"#include "weLockWatch.h"Variables | |
| char const | prgNamPure [] |
| The pure program name. | |
| char const | prgSVNdat [] |
| The complete SVN date string. | |
| char const | prgSVNrev [] |
| The complete SVN revision string. | |
A simple output program for Raspberry's GPIO pins.
Revision history
This is a second simple GPIO pin output program using pigpio(d), as does gnBlinkSimple.c. Additionally, it has features qualifying it as a process control service. It locks gpio, it can run endlessly and it cleans up when ended. Hence, it may be the germ cell of of simple real time control applications.
Compile on Pi by: gcc -lpigpiod_if2 -I./include -o rdGnBlink rdGnBlink.c gcc -lpigpiod_if2 -I./include -c -o weRasp/weLockWatch.o weRasp/weLockWatch.c gcc -lpigpiod_if2 -I./include -c -o weRasp/sysBasic.o weRasp/sysBasic.c
Compile on Windows by:
or better by using make:
If not having made the usual lock file for pigpiod do
| char const prgNamPure[] |
The pure program name.
To be provided in the application's / program's source.
| char const prgSVNrev[] |
The complete SVN revision string.
To be provided in the application's / program's source.
| char const prgSVNdat[] |
The complete SVN date string.
To be provided in the application's / program's source.