Skip to content

Instantly share code, notes, and snippets.

Dario Salvi dariosalvi78

Block or report user

Report or block dariosalvi78

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dariosalvi78
dariosalvi78 / ADS1256.c
Last active Oct 14, 2019
Simple library for ADS1256 to be used with Arduino. It does not implement the whole set of features, but can be used as a starting point for a more comprehensive library.
View ADS1256.c
/* ADS1256 simple library for Arduino
ADS1256, datasheet: http://www.ti.com/lit/ds/sbas288j/sbas288j.pdf
connections to Atmega328 (UNO)
CLK - pin 13
DIN - pin 11 (MOSI)
DOUT - pin 12 (MISO)
CS - pin 10
DRDY - pin 9
RESET- pin 8 (or tie HIGH?)
@dariosalvi78
dariosalvi78 / ADS1256.c
Created May 2, 2017
Simple library for ADS1256 to be used by Arduino. It does not implement the whole set of features, but can be used as a starting point.
View ADS1256.c
/* ADS1256 simple library for Arduino
ADS1256, datasheet: http://www.ti.com/lit/ds/sbas288j/sbas288j.pdf
connections to Atmega328 (UNO)
CLK - pin 13
DIN - pin 11 (MOSI)
DOUT - pin 12 (MISO)
CS - pin 10
DRDY - pin 9
RESET- pin 8 (or tie HIGH?)
@dariosalvi78
dariosalvi78 / MainActivity.java
Created Aug 9, 2016
A bare minimum Activity that connects to Google Fit APIs
View MainActivity.java
package myself.testAPP;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentSender;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
@dariosalvi78
dariosalvi78 / SimpleTestReflection.java
Last active Aug 29, 2015
A GWT test case for org.dt.reflector with nested classes
View SimpleTestReflection.java
package pIoT.client.tests;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import org.dt.reflector.client.PropertyUtils;
import org.dt.reflector.client.Reflectable;
import org.dt.reflector.client.Reflector;
View gist:caba434a30ee6c7dcb1c
public class ReflectableIterator<T> implements org.dt.reflector.Reflectable{
ArrayList<T> list = new ArrayList<T>();
int pointer = 0;
public boolean getHasNext(){
if(pointer <list.size())
return true;
else return false;
}
You can’t perform that action at this time.