项目作者: tehnatural1

项目描述 :
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
高级语言: Java
项目地址: git://github.com/tehnatural1/Lighting-Control.git
创建时间: 2018-10-17T21:00:48Z
项目社区:https://github.com/tehnatural1/Lighting-Control

开源协议:

下载


Lighting-Control

Clone this repo

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

Compile the code

  1. gcc -o GPIOControl GPIOControl.c -lpthread

Start the service

  1. ./GPIOControl.c

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

  1. ./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

  1. systemctl enable gpiocontrol.service
  2. systemctl enable wifipwmgmt.service

To run the services immediately

  1. systemctl start gpiocontrol.service
  2. systemctl start wifipwmgmt.service