// Path: src/main/java/org/mandfer/sunfunpi4j/BaseSketch.java
// protected static void wiringPiSetup(){
//     if (Gpio.wiringPiSetup() == -1) {
//         String msg = "==>> GPIO SETUP FAILED";
//         logger.debug(msg);
//         throw new RuntimeException(msg);
//     }
// }


import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioPinDigitalMultipurpose;
import com.pi4j.io.gpio.GpioPinDigitalOutput;
import com.pi4j.io.gpio.PinMode;
import com.pi4j.io.gpio.RaspiPin;
import static org.mandfer.sunfunpi4j.BaseSketch.wiringPiSetup;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.mandfer.sunfunpi4j;


/**
 *
 * @author marcandreuf
 */
public abstract class ADC_Base extends BaseSketch {

    protected GpioPinDigitalOutput ADC_CS;
    protected GpioPinDigitalOutput ADC_CLK;
    protected GpioPinDigitalMultipurpose ADC_DIO;

    public ADC_Base(GpioController gpio) {
        super(gpio);
    }

    @Override
    protected void setup(String[] args) {

// Path: src/main/java/org/mandfer/sunfunpi4j/BaseSketch.java
// protected static void wiringPiSetup(){
//     if (Gpio.wiringPiSetup() == -1) {
//         String msg = "==>> GPIO SETUP FAILED";
//         logger.debug(msg);
//         throw new RuntimeException(msg);
//     }
// }


// Path: src/main/java/org/mandfer/sunfunpi4j/ADC_Base.java
import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioPinDigitalMultipurpose;
import com.pi4j.io.gpio.GpioPinDigitalOutput;
import com.pi4j.io.gpio.PinMode;
import com.pi4j.io.gpio.RaspiPin;
import static org.mandfer.sunfunpi4j.BaseSketch.wiringPiSetup;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.mandfer.sunfunpi4j;


/**
 *
 * @author marcandreuf
 */
public abstract class ADC_Base extends BaseSketch {

    protected GpioPinDigitalOutput ADC_CS;
    protected GpioPinDigitalOutput ADC_CLK;
    protected GpioPinDigitalMultipurpose ADC_DIO;

    public ADC_Base(GpioController gpio) {
        super(gpio);
    }

    @Override
    protected void setup(String[] args) {

        wiringPiSetup();
