Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed May 27, 2021
1 parent a993506 commit 7258699
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion MCP4725.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// FILE: MCP4725.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for 12 bit I2C DAC - MCP4725
// VERSION: 0.3.0
// VERSION: 0.3.1
// URL: https://github.com/RobTillaart/MCP4725
//
// HISTORY:
Expand All @@ -23,6 +23,7 @@
// 0.2.2 2020-07-05 add get/setPercentage();
// 0.2.3 2020-12-26 arduino-CI, bool isConnected(), bool begin()
// 0.3.0 2021-01-15 Add WireN support (e.g. teensy)
// 0.3.1 2021-05-27 Fix arduino-CI / arduino-lint


#include "MCP4725.h"
Expand Down
4 changes: 2 additions & 2 deletions MCP4725.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// FILE: MCP4725.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for 12 bit I2C DAC - MCP4725
// VERSION: 0.3.0
// VERSION: 0.3.1
// URL: https://github.com/RobTillaart/MCP4725
// HISTORY: See MCP4725.cpp
//
Expand All @@ -13,7 +13,7 @@
#include "Arduino.h"


#define MCP4725_VERSION (F("0.3.0"))
#define MCP4725_VERSION (F("0.3.1"))


// constants
Expand Down
11 changes: 6 additions & 5 deletions examples/mcp4725_keypad/mcp4725_keypad.ino
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
//
// FILE: MCP4725_keypad.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// VERSION: 0.2.0
// PURPOSE: test MCP4725 lib
// DATE: 2019-10-16
// URL: https://github.com/RobTillaart/MCP4725
//

// Note: possible to replace I2CKeypad with Serial code


#include "Wire.h"
#include "MCP4725.h"

MCP4725 MCP(0x62); // 0x62 or 0x63
MCP4725 MCP(0x62); // 0x62 or 0x63

#include "I2CKeyPad.h"
#include "I2CKeyPad.h" // at least version 0.2.1
#define KEYPAD_ADDR 0x38

I2CKeyPad keyPad;
I2CKeyPad keyPad(KEYPAD_ADDR);

uint32_t value = 0;
uint32_t oldValue = 0;
Expand All @@ -31,7 +32,7 @@ void setup()

MCP.begin();
MCP.setValue(0);
keyPad.begin(KEYPAD_ADDR);
keyPad.begin();
}

void loop()
Expand Down
3 changes: 2 additions & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"type": "git",
"url": "https://github.com/RobTillaart/MCP4725.git"
},
"version":"0.3.0",
"version": "0.3.1",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=MCP4725
version=0.3.0
version=0.3.1
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for 12 bit I2C DAC - MCP4725
Expand Down

0 comments on commit 7258699

Please sign in to comment.