I'm I've been working a lot with an external ADC, and I ended up writing a file that I am, effectively, using as a library and I'd like to put it on GitHub. Only problem is that when I try to add the library I am told that I don't have a valid library file. I tried following what was said in this Site, but its not working.
this is the file structure I am leaving in the zip file:
->ADS124X
_ library.properties
_ src
_ ADS124X.cpp
_ ADS124X.h
I still haven't add the keywords file because I just want to have the basic working on my computer.
in ADS124X.h I have something like this:
// ADS.h
#ifndef ADS124X_H
#define ADS124X_H
#include <stdarg.h>
#include <Arduino.h>
class ADS124X
{
public:
...
private:
...
};
#endif
And in ADS124X.cpp I have something like this:
#include "ADS124X.h"
#include <SPI.h>
#define NOP 0xff
...
void ADS::PinMap(int cs, int drdy, int reset, int start){...}
I imagine I'm missing something simple, but I can't see what it is. Can someone tell me what I can do to make this file importable?