mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
gsr: Added gsr sensor C source
Added the C source for the gsr sensor with necessary changes to cmake, examples, docs. * Renamed all files with grovegsr to gsr * Replaced all instances of grovegsr with gsr * Added C source for gsr sensor * Updated all cmake files * Added C example for gsr sensor * Fixed C++ threshold method from throwing on a successfull aio read Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -35,7 +35,7 @@ add_example(GroveButton_intrSample grove)
|
||||
add_example(GroveCollision grovecollision)
|
||||
add_example(GroveEHRSample groveehr)
|
||||
add_example(Emg emg)
|
||||
add_example(GroveGsr grovegsr)
|
||||
add_example(Gsr gsr)
|
||||
add_example(GroveLed_multiSample grove)
|
||||
add_example(GroveLEDSample grove)
|
||||
add_example(GroveLightSample grove)
|
||||
|
@ -22,16 +22,16 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import upm_grovegsr.GroveGSR;
|
||||
import upm_gsr.GSR;
|
||||
|
||||
public class GroveGsr {
|
||||
public class Gsr {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
//! [Interesting]
|
||||
// Instantiate a Grove GSR sensor on analog pin A0
|
||||
GroveGSR gsr = new GroveGSR(0);
|
||||
GSR gsr = new GSR(0);
|
||||
System.out.println("Calibrating...");
|
||||
gsr.calibrate();
|
||||
|
Reference in New Issue
Block a user