futurestack14_badge icon indicating copy to clipboard operation
futurestack14_badge copied to clipboard

Update ExpGPIO class to fix configure initialstate bug

Open DoronShapiro opened this issue 10 years ago • 1 comments

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.

DoronShapiro avatar Jun 11 '15 18:06 DoronShapiro

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.

CLAassistant avatar Mar 03 '20 17:03 CLAassistant