-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from porrey/new-constructor
New constructor
- Loading branch information
Showing
13 changed files
with
649 additions
and
236 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,5 @@ | |
*.exe | ||
*.out | ||
*.app | ||
.DS_Store | ||
src/.vscode/arduino.json |
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
/* | ||
* MAX1704X Arduino Library for MAX17043 and MAX17044 Fuel Gauge. | ||
* | ||
* Version 1.1.0 | ||
* Copyright © 2018-2021 Daniel Porrey. All Rights Reserved. | ||
* https://github.com/porrey/max1704x | ||
* | ||
* This file is part of the MAX1704X Arduino Library. | ||
* | ||
* The MAX1704X Arduino Library is free software: you can redistribute | ||
* it and/or modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* The MAX1704X Arduino Library is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
* the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the MAX1704X Arduino Library. If not, | ||
* see http://www.gnu.org/licenses/. | ||
*/ | ||
#ifndef MAX17043_H | ||
#define MAX17043_H | ||
|
||
#include "MAX1704X.h" | ||
|
||
extern MAX1704X FuelGauge; | ||
|
||
// | ||
// The MAX17043 is a one-cell device with a | ||
// a voltage measurement range of 0 to 5 V in 1.25 mV increments. | ||
// | ||
MAX1704X FuelGauge = MAX1704X(1.25); | ||
|
||
#endif |
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,37 @@ | ||
/* | ||
* MAX1704X Arduino Library for MAX17043 and MAX17044 Fuel Gauge. | ||
* | ||
* Version 1.1.0 | ||
* Copyright © 2018-2021 Daniel Porrey. All Rights Reserved. | ||
* https://github.com/porrey/max1704x | ||
* | ||
* This file is part of the MAX1704X Arduino Library. | ||
* | ||
* The MAX1704X Arduino Library is free software: you can redistribute | ||
* it and/or modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* The MAX1704X Arduino Library is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
* the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the MAX1704X Arduino Library. If not, | ||
* see http://www.gnu.org/licenses/. | ||
*/ | ||
#ifndef MAX17044_H | ||
#define MAX17044_H | ||
|
||
#include "MAX1704X.h" | ||
|
||
extern MAX1704X FuelGauge; | ||
|
||
// | ||
// The MAX17044 is a two-cell device with a | ||
// a voltage measurement range of 0 to 10 V in 2.50 mV increments. | ||
// | ||
MAX1704X FuelGauge = MAX1704X(2.50); | ||
|
||
#endif |
Oops, something went wrong.