some more adc code
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user