Open ianburton20 opened 4 years ago
It's possible, now I am working on that.
Great if the ADS1118 could be used with the ESP8266. Using an SPI bus may well speed up sampling. With an ADS1115 connected to the ESP8266 via I2C, the best I can do is sample every 2-3mS. The ADS1115/8 is capable of sampling every 1.1mS (approx).
I can't get the examples to compile when the target is ESP8266:
WARNING: library ADS1118 claims to run on avr, esp32 architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s).
basicExampleAds1118:17:19: error: no matching function for call to 'ADS1118::ADS1118(int)'
ADS1118 ads1118(CS);
^
C:\...\ADS1118\examples\basicExampleAds1118\basicExampleAds1118.ino:17:19: note: candidates are:
In file included from C:\...\ADS1118\examples\basicExampleAds1118\basicExampleAds1118.ino:10:0:
C:\...\Arduino\libraries\ADS1118/ADS1118.h:38:7: note: ADS1118::ADS1118()
class ADS1118 {
^
C:\...\libraries\ADS1118/ADS1118.h:38:7: note: candidate expects 0 arguments, 1 provided
C:\...\libraries\ADS1118/ADS1118.h:38:7: note: constexpr ADS1118::ADS1118(const ADS1118&)
C:\...\libraries\ADS1118/ADS1118.h:38:7: note: no known conversion for argument 1 from 'int' to 'const ADS1118&'
C:\...\libraries\ADS1118/ADS1118.h:38:7: note: constexpr ADS1118::ADS1118(ADS1118&&)
C:\...\libraries\ADS1118/ADS1118.h:38:7: note: no known conversion for argument 1 from 'int' to 'ADS1118&&'
exit status 1
no matching function for call to 'ADS1118::ADS1118(int)'
Hello, I would like guidance on adapting the LIB to esp8266.
Might this library work on an ESP8266? Anyone used it on an ESP8266?