-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into next_work3Merge
- Loading branch information
Showing
12 changed files
with
2,284 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* | ||
* | ||
* * | ||
* * - | ||
* * #%L | ||
* * ********************************************************************** | ||
* * ORGANIZATION : Pi4J | ||
* * PROJECT : Pi4J :: EXTENSION | ||
* * FILENAME : ADS1255.java | ||
* * | ||
* * This file is part of the Pi4J project. More information about | ||
* * this project can be found here: https://pi4j.com/ | ||
* * ********************************************************************** | ||
* * %% | ||
* * * Copyright (C) 2012 - 2024 Pi4J | ||
* * %% | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* * #L% | ||
* * | ||
* | ||
* | ||
* | ||
*/ | ||
|
||
package com.pi4j.devices.ads1256; | ||
|
||
import com.pi4j.context.Context; | ||
import com.pi4j.io.spi.SpiBus; | ||
import com.pi4j.io.spi.SpiChipSelect; | ||
import com.pi4j.util.Console; | ||
|
||
public final class ADS1255 extends AbstractADS125x { | ||
|
||
@SuppressWarnings("exports") | ||
public ADS1255(Context pi4j, SpiBus spiBus, SpiChipSelect chipSelect, | ||
boolean reset, int drdyPin, int csPin, int rstPin, | ||
boolean crtRstGpio, int pdwnPin, boolean crtPdwnGpio, | ||
Console console, String traceLevel, double vref, DataRate sampleRate, boolean useBuffer) | ||
throws InterruptedException { | ||
super(pi4j, spiBus, chipSelect, reset, drdyPin, csPin, rstPin, crtRstGpio, | ||
pdwnPin, crtPdwnGpio, console, traceLevel, vref, sampleRate, useBuffer); | ||
} | ||
|
||
@Override | ||
public int getNumGpioPins() { | ||
return 2; | ||
} | ||
|
||
@Override | ||
public int getNumAnalogPins() { | ||
return 2; | ||
} | ||
}//end ADS1255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.