![]() |
rasProject_01 / weSweetHome
R. 102 2025-10-31
process control / RasPi software by weinert-automation
|
A very first program for Raspberry's GPIO pins 75 (19.02.2025) Copyright (c) 2024 Albrecht Weinert weinert-automation.de a-weinert.de. More...
#include <stdio.h>#include <pigpio.h>#include <pigpiod_if2.h>#include <unistd.h>Variables | |
| int | thePi |
| The standard Pi for gpio(d) IO of the program. More... | |
A very first program for Raspberry's GPIO pins 75 (19.02.2025) Copyright (c) 2024 Albrecht Weinert weinert-automation.de a-weinert.de.
This is a most simple version of a GPIO pin output program using pigpio(d).
Compile on Pi by: g++ gnBlinkSimple.c -o gnBlinkSimple -lpigpiod_if2
Compile on Windows by: arm-linux-gnueabihf-gcc -I./include -c -o gnBlinkSimple.o gnBlinkSimple.c arm-linux-gnueabihf-gcc -I. gnBlinkSimple.o –output gnBlinkSimple.elf -lpigpiod_if2 -lpthread cp gnBlinkSimple.elf gnBlinkSimple winscp.com /script=progTransWin /parameter sweet:0123 targetPi bin gnBlinkSimple
| int thePi |
The standard Pi for gpio(d) IO of the program.
This global variable is provided to hold the main pi used by a program doing process IO via piGpIO[d]. In most local use cases
it will be 0 = this local Pi. After usage don't forget to terminate the connection to the pigpio daemon by