-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix #68, gain bugs ADS1x13 - add unit test for ADS1x13 - update GitHub/actions to v4 - removed depreciated **getLastValue()** - add multiplexer section to readme.md
- Loading branch information
1 parent
7ad1382
commit 0974529
Showing
12 changed files
with
170 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// FILE: ADS1113_getMaxVoltage.ino | ||
// AUTHOR: Rob.Tillaart | ||
// PURPOSE: read analog inputs - straightforward. | ||
// URL: https://github.com/RobTillaart/ADS1X15 | ||
|
||
// test for issue #68 behaviour ADS1113 / ADS1013 | ||
// | ||
// connect 1 potmeter per port. | ||
// | ||
// GND ---[ x ]------ 5V | ||
// | | ||
// | ||
// measure at x (connect to AIN0). | ||
|
||
|
||
#include "ADS1X15.h" | ||
|
||
ADS1113 ADS(0x48); | ||
|
||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
Serial.println(__FILE__); | ||
Serial.print("ADS1X15_LIB_VERSION: "); | ||
Serial.println(ADS1X15_LIB_VERSION); | ||
|
||
Wire.begin(); | ||
ADS.begin(); | ||
|
||
for (int g = 0; g < 8; g++) | ||
{ | ||
ADS.setGain(g); | ||
Serial.print(g); | ||
Serial.print('\t'); | ||
Serial.print(ADS.getGain()); // should all print 2 | ||
Serial.print('\t'); | ||
Serial.println(ADS.getMaxVoltage(), 3); // should all print 2.048 | ||
} | ||
} | ||
|
||
|
||
void loop() | ||
{ | ||
} | ||
|
||
|
||
// -- END OF FILE -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=ADS1X15 | ||
version=0.4.1 | ||
version=0.4.2 | ||
author=Rob Tillaart <[email protected]> | ||
maintainer=Rob Tillaart <[email protected]> | ||
sentence=Arduino library for ADS1015 - I2C 12 bit ADC and ADS1115 I2C 16 bit ADC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters