Controlling Pullup Resisitors
Up to Flash
Another day, another challenge.
How do you turn on the pullup resistors from Flash? I have attempted sending an OSC message. It does not throw an error in mchelper but the io port is still defaulting to low.
mcflash.send("/io/56/pullup", [1] );
Interesting. Mine are not defaulting low. That is actually what I would prefer. Instead I get some defaulting to low and some floating high. Any ideas?
Eh - I think I had in mind the firmware code I've been working on, which has not yet been released. Sorry bout that.
Ideally the pins would be cleared on board startup - for now, maybe your best bet is to actively clear them in your application code.
I tried doing a manual reset of the pins when starting up my connection. I used the following code for each pin.
mcflash.send("/io/pin#/active", [1] );
mcflash.send("/io/pin#/pullup", [0] );
I still have floating highs on about half of the io pins. If I reverse the pullup setting to 1 there is no change in which pins are low and which are high.
You'll need to set the value to 0 or 1 to turn it on or off once it's active - /io/#/value 0 or /io/#/value 1
I am using these as inputs. That would mean I should not set them to a value right? I need them to pull down to zero unless my external input drives the pin high. That is the way most boards with internal pull down resistors work.

