Android Open Source - android-gpio-controller Pin Handler






From Project

Back to project page android-gpio-controller.

License

The source code is released under:

GNU General Public License

If you think the Android project android-gpio-controller listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package io.github.petermuller.raspberrypigpiocontroller;
/*ww  w . j a v a2  s .c  o  m*/
/**
 * Created by Peter on 1/1/2015.
 */
public class PinHandler {

    /**
     * The socket client handles all communications to the RasPi GPIO server
     */
    private SocketClient sc;

    /**
     * Default constructor. Do not use.
     */
    public PinHandler() {} /*Don't use this*/

    /**
     * Constructor for using socket communication.
     * @param sc SocketClient for GPIO server communication
     */
    public PinHandler(SocketClient sc) {
        this.sc = sc;
    }

    /**
     * The UI to server data transfer
     * @param pin The pin number to change
     * @param direction The pin direction to set (input or output)
     */
    public void handlePins(int pin, String direction){
        //TODO unstub
    }

}




Java Source Code List

io.github.petermuller.raspberrypigpiocontroller.ApplicationTest.java
io.github.petermuller.raspberrypigpiocontroller.InputHandler.java
io.github.petermuller.raspberrypigpiocontroller.MainActivity.java
io.github.petermuller.raspberrypigpiocontroller.OutputHandler.java
io.github.petermuller.raspberrypigpiocontroller.PinHandler.java
io.github.petermuller.raspberrypigpiocontroller.SocketClient.java