tehnatural1 / Lighting-Control

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 74.5%Language:C 24.2%Language:C++ 1.2%Language:Shell 0.1%