Skip to content

Commit

Permalink
feat: update to adsx v0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
LasaleFamine committed Dec 18, 2023
1 parent 525e608 commit a961f07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wisblock-io-extension-mini",
"version": "0.0.1",
"version": "0.1.0",
"description": "Library for the Lualtek WisBlock IO Extension Mini board",
"repository": {
"type": "git",
Expand All @@ -15,7 +15,7 @@
}
],
"dependencies": {
"ADS1X15": "^0.3"
"ADS1X15": "^0.4"
},
"license": "MIT",
"frameworks": "arduino",
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WBIOExtMini
version=0.0.1
version=0.1.0
author=Lualtek
maintainer=Lualtek <dev@lualtek.io>
sentence=Library for the Lualtek WisBlock IO Extension Mini board
Expand All @@ -8,4 +8,4 @@ category=Communication
url=https://github.com/lualtek/wisblock-io-extension-mini
architectures=*
includes=WBIOExtMini.h
depends=ADS1X15 (>=0.3)
depends=ADS1X15 (>=0.4)
5 changes: 3 additions & 2 deletions src/WBIOExtMini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ void WBIOExtMini::powerOn()
{
pinMode(IOEXTMINI_POWER_PIN, OUTPUT);
digitalWrite(IOEXTMINI_POWER_PIN, HIGH);
delay(2000);
delay(200);
}

void WBIOExtMini::powerOff()
{
pinMode(IOEXTMINI_POWER_PIN, OUTPUT);
digitalWrite(IOEXTMINI_POWER_PIN, LOW);
}

bool WBIOExtMini::begin()
{

Wire.begin();
if (!ADS.begin())
{
debugStream->printf("ADS1115 not found or not working correctly on address %x", IOEXTMINI_ADS1115_ADDR);
Expand Down

0 comments on commit a961f07

Please sign in to comment.