32 lines
509 B
C++
32 lines
509 B
C++
#include "Arduino.h"
|
|
|
|
#include "Streaming.h"
|
|
|
|
#include "ads1210.h"
|
|
|
|
|
|
ADS1210 ads1210;
|
|
|
|
|
|
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
delay(1000);
|
|
|
|
pinMode(13, OUTPUT);
|
|
|
|
ads1210.begin(9);
|
|
|
|
}
|
|
|
|
void loop() {
|
|
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
|
|
delay(1000); // wait for a second
|
|
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
|
|
delay(1000); // wait for a second
|
|
|
|
Serial << "Tick" << endl;
|
|
ads1210.begin(9);
|
|
|
|
}
|