some more adc code

This commit is contained in:
2014-11-04 16:33:45 +01:00
parent eb89aef4a5
commit 4947094772
5 changed files with 130 additions and 55 deletions

View File

@ -15,7 +15,7 @@ void setup() {
pinMode(13, OUTPUT);
ads1210.begin(9);
ads1210.begin(9, 8);
}
@ -24,8 +24,7 @@ void loop() {
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);
uint32_t adcValue = ads1210.get();
Serial << "AdcValue: " << adcValue << endl;
}