Skip to content

Setting the state of GPIO pin on the RPi3 by sending the corresponding pin number to a socket on a remote host. GPIO pin state is set through direct GPIO register manipulation in C-code

Notifications You must be signed in to change notification settings

tehnatural1/Lighting-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lighting-Control

Clone this repo

git clone https://github.com/tehnatural1/Lighting-Control

Compile the code

gcc -o GPIOControl GPIOControl.c -lpthread

Start the service

./GPIOControl.c

Disable wifi power-management by running a script, set a service to run it on boot

./wifi_pw_mgmt.sh

To run services on boot place the files located in services to /etc/systemd/system/multi-user.target.wants and run the files on boot

systemctl enable gpiocontrol.service
systemctl enable wifipwmgmt.service

To run the services immediately

systemctl start gpiocontrol.service
systemctl start wifipwmgmt.service

About

Setting the state of GPIO pin on the RPi3 by sending the corresponding pin number to a socket on a remote host. GPIO pin state is set through direct GPIO register manipulation in C-code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published