|
38 | 38 |
|
39 | 39 | import com.pi4j.context.Context; |
40 | 40 | import com.pi4j.io.spi.SpiBus; |
41 | | -import com.pi4j.io.spi.SpiChipSelect; |
42 | 41 | import com.pi4j.util.Console; |
43 | 42 |
|
44 | 43 | public final class ADS1255 extends AbstractADS125x { |
45 | 44 |
|
46 | 45 | @SuppressWarnings("exports") |
47 | | - public ADS1255(Context pi4j, SpiBus spiBus, SpiChipSelect chipSelect, |
48 | | - boolean reset, int drdyPin, int csPin, int rstPin, |
49 | | - boolean crtRstGpio, int pdwnPin, boolean crtPdwnGpio, |
50 | | - Console console, String traceLevel, double vref, DataRate sampleRate, boolean useBuffer) |
51 | | - throws InterruptedException { |
52 | | - super(pi4j, spiBus, chipSelect, reset, drdyPin, csPin, rstPin, crtRstGpio, |
53 | | - pdwnPin, crtPdwnGpio, console, traceLevel, vref, sampleRate, useBuffer); |
| 46 | + public ADS1255(Context pi4j, SpiBus spiBus, int chipSelect, |
| 47 | + boolean reset, int drdyPin, int csPin, int rstPin, |
| 48 | + boolean crtRstGpio, int pdwnPin, boolean crtPdwnGpio, |
| 49 | + Console console, String traceLevel, double vref, DataRate sampleRate, boolean useBuffer) |
| 50 | + throws InterruptedException { |
| 51 | + super(pi4j, spiBus, chipSelect, reset, drdyPin, csPin, rstPin, crtRstGpio, |
| 52 | + pdwnPin, crtPdwnGpio, console, traceLevel, vref, sampleRate, useBuffer); |
54 | 53 | } |
55 | 54 |
|
56 | 55 | @Override |
57 | 56 | public int getNumGpioPins() { |
58 | | - return 2; |
| 57 | + return 2; |
59 | 58 | } |
60 | 59 |
|
61 | 60 | @Override |
62 | 61 | public int getNumAnalogPins() { |
63 | | - return 2; |
| 62 | + return 2; |
64 | 63 | } |
65 | 64 | }//end ADS1255 |
0 commit comments