add modbus stuff

This commit is contained in:
hg
2014-11-07 18:40:19 +01:00
parent 747ffbf6ad
commit cebf295a8b
5 changed files with 731 additions and 75 deletions

View File

@ -1,6 +1,6 @@
#include "Arduino.h"
#include "Streaming.h"
// #include "Streaming.h"
#include "Metro.h"
#include "ads1210.h"
@ -18,7 +18,7 @@ Metro secondTick = Metro(1000);
void setup() {
Serial.begin(9600);
// Serial.begin(9600);
delay(1000);
led.begin(LED_PIN);
@ -31,6 +31,6 @@ void loop() {
if (secondTick.check() == 1) {
led.toggle();
Serial << "AdcValue: " << _HEX(ads1210.value) << endl;
// Serial << "AdcValue: " << _HEX(ads1210.value) << endl;
}
}