Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Update ExpGPIO class to fix configure initialstate bug#6

Open
DoronShapiro wants to merge 1 commit intonewrelic:masterfrom
DoronShapiro:patch-1
Open

Update ExpGPIO class to fix configure initialstate bug#6
DoronShapiro wants to merge 1 commit intonewrelic:masterfrom
DoronShapiro:patch-1

Conversation

@DoronShapiro
Copy link

Currently, if configure is called on a digital out pin from the ExpGPIO class with an initial state, (e.g. ExpGPIO(ioexp, 10).configure(DIGITAL_OUT, 1);, the initial state is treated as a callback and the pin is initialized with its default value of 0.

This commit drops in the updated ExpGPIO class from https://github.com/electricimp/reference/blob/master/hardware/expGpio/expGpio.device.nut that gives ExpGPIO's configure function the same interface as the standard pin's configure function.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants