Trying to compile code for openhardwareexg continuous sampling error on Linux Ubuntu Arduino due.
Did not check on Windows 10 yet. Changed added #include <Arduino.h> to get past first error I read that useualy that issue was on Linux. So could the error be it also?
Here is where I got the code from github under Arduino.
shown here
http://forum.arduino.cc/index.php?topic=116803.0
Now I get one more error... little more complex I wonder if it is the ads1298 file and the chip and then definition of the ads1299?
Arduino: 1.8.3 (Linux), Board: "Arduino Due (Programming Port)"
In file included from sketch/ADS129x.cpp:14:0:
ADS129x.h:6: error: redefinition of 'class ADS129xChip'
class ADS129xChip{
^
In file included from sketch/ADS129x.cpp:5:0:
ADS129x.h:6: error: previous definition of 'class ADS129xChip'
class ADS129xChip{
^
sketch/ADS129x.cpp: In constructor 'ADS129xChip::ADS129xChip()':
ADS129x.cpp:26: error: 'lastSample' was not declared in this scope
lastSample = NULL;
^
ADS129x.cpp:27: error: 'gain' was not declared in this scope
gain = NULL;
^
sketch/ADS129x.cpp: In destructor 'ADS129xChip::~ADS129xChip()':
ADS129x.cpp:32: error: 'lastSample' was not declared in this scope
delete[] lastSample;
^
ADS129x.cpp:
googled arduino size_t it told me to add to the ccp file
#include <Arduino.h> //added for size_t error
shown here
http://forum.arduino.cc/index.php?topic=116803.0
Now I get one more error... little more complex I wonder if it is the ads1298 file and the chip and then definition of the ads1299?
Arduino: 1.8.3 (Linux), Board: "Arduino Due (Programming Port)"
In file included from sketch/ADS129x.cpp:14:0:
ADS129x.h:6: error: redefinition of 'class ADS129xChip'
class ADS129xChip{
^
In file included from sketch/ADS129x.cpp:5:0:
ADS129x.h:6: error: previous definition of 'class ADS129xChip'
class ADS129xChip{
^
sketch/ADS129x.cpp: In constructor 'ADS129xChip::ADS129xChip()':
ADS129x.cpp:26: error: 'lastSample' was not declared in this scope
lastSample = NULL;
^
ADS129x.cpp:27: error: 'gain' was not declared in this scope
gain = NULL;
^
sketch/ADS129x.cpp: In destructor 'ADS129xChip::~ADS129xChip()':
ADS129x.cpp:32: error: 'lastSample' was not declared in this scope
delete[] lastSample;
^
ADS129x.cpp: