I'm using uint8_t in a header file, which caused all sorts of problems as it was not a recognized type.
See this thread (not mine, but applicable):
I've tried to add:
#include <Particle.h>
#include <application.h>
#include <types.h>
All to no avail. They all return an error of 'No such file or directory'
Here is the header file:
/*
This class carries the data and methods that process each circuit
*/
#include <Particle.h>
// #include <application.h>
// #include <types.h>
#define byte uint8_t
class ArCircuit
{
private:
int _numReads; // The number of successive reads currently being stored
byte _adcNum; // The ADC number this circuit is attached to
byte _adcType; // The type of ADC this is, such as MCP3208 or other
byte _adcPin; // The pin number on the ADC for this circuit
public:
ArCircuit() {}
ArCircuit(byte adcNumSet, byte adcTypeSet, byte adcPinSet);
byte getADCNum() { return _adcNum; }
void setADCNum(byte adcNumSet) { _adcNum = adcNumSet; }
byte getADCType() { return _adcType; }
void setADCType(byte adcTypeSet) { _adcType = adcTypeSet; }
byte getADCPin() { return _adcPin; }
void setADCPin(byte adcPinSet) { _adcPin = adcPinSet; }
};