Skip to content

Instantly share code, notes, and snippets.

View dariosalvi78's full-sized avatar

Dario Salvi dariosalvi78

View GitHub Profile
@dariosalvi78
dariosalvi78 / ADS1256.c
Last active December 21, 2023 08:23
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.
/* 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 19:24
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.
/* 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 August 9, 2016 09:19
A bare minimum Activity that connects to Google Fit APIs
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 August 29, 2015 14:06
A GWT test case for org.dt.reflector with nested classes
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;
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;
}