├── git-push.sh ├── README.md ├── .gitignore ├── src └── main │ └── java │ └── PushToLambda.java ├── LICENSE └── pom.xml /git-push.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # raspberrypi-aircon-control -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /aircon-control.iml 2 | target/ 3 | target 4 | -------------------------------------------------------------------------------- /src/main/java/PushToLambda.java: -------------------------------------------------------------------------------- 1 | import com.pi4j.io.gpio.GpioController; 2 | import com.pi4j.io.gpio.GpioFactory; 3 | import com.pi4j.io.gpio.GpioPinDigitalOutput; 4 | import com.pi4j.io.gpio.RaspiPin; 5 | 6 | public class PushToLambda { 7 | 8 | 9 | public static void main(String[] args){ 10 | GpioController gpioController = GpioFactory.getInstance(); 11 | GpioPinDigitalOutput output= gpioController.provisionDigitalOutputPin(RaspiPin.GPIO_17); 12 | output.high(); 13 | output.low(); 14 | } 15 | 16 | } 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 RAJESH KUMAR BEHURA 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | pi4-aircon-control 8 | aircon-control 9 | 1.0-SNAPSHOT 10 | 11 | 12 | 13 | 14 | 15 | org.json 16 | json 17 | 20200518 18 | 19 | 20 | 21 | 22 | com.pi4j 23 | pi4j-core 24 | 1.2 25 | 26 | 27 | 28 | 29 | com.pi4j 30 | pi4j-gpio-extension 31 | 1.2 32 | 33 | 34 | 35 | com.pi4j 36 | pi4j-device 37 | 1.2 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | maven-compiler-plugin 46 | 47 | 11 48 | 11 49 | 50 | 51 | 52 | 53 | 54 | 55 | --------------------------------------------------------------------------------