InputPullDown and InputPullUp with FezUtility board

Can anyone share some knowledge as to whats going on with my InputPullDown and InputPullUp? notice how when GpioPinDriveMode = InputPullDown OR InputPullUp the analog value changes every time this input changes state.

And when GpioPinDriveMode = Input the analog values does not seems to be affected bu the input itself keeps changing state even when there is nothing physically activating it.

This is my code:
[url]https://drive.google.com/open?id=0B-6SYjD3iVDGcXJwcEdIRFk2WjA[/url]
[url]https://drive.google.com/open?id=0B-6SYjD3iVDGbDRNLXFlYXdzMVU[/url]
[url]https://drive.google.com/open?id=0B-6SYjD3iVDGYkpCNUlYYUk5eE0[/url]

These videos shows the odd behavior:
[url]https://drive.google.com/open?id=0B-6SYjD3iVDGSHRqa2JDVGN5eEE[/url]
[url]https://drive.google.com/open?id=0B-6SYjD3iVDGYjhKcnktQ1RnZHc[/url]
[url]https://drive.google.com/open?id=0B-6SYjD3iVDGUVhiT004dDhQdGc[/url]

Thanks

I didn’t look in any detail at your code or anything more than the first part of the first video - but here’s my thoughts. The period of the change seems like you have a timer that’s toggling a status, and it’s incorrectly handling that (ie it’s a code problem not a hardware problem).

For anyone to do any meaningful debugging with you, you will need to shrink your code so you can include it inline here (not take screen shots) so someone else can also reproduce it on their own setup.

1 Like