Here's a simple program which polls the 8 piface inputs (including the 4 switches) and toggles the outputs on or off if the input is toggled on. It saves the states in a file so it can resume the same outputs after system restart.ste73 wrote:Godo idea, any example?
You "tried using code". What does that mean? Did you type the commands exactly as I listed in my first post above? Did you get any error messages? If so, then please state them (exactly) here. Nobody can help unless the problem is clear.diana1990 wrote:I tried using code of bulletmark but nothing changed :/
That should not be the case. Post your complete code here and I will attempt to correct it for you.metso wrote:I guess the input read function needs some time to recover before the next one should be applied.
Think about the state when 5V is not applied. It needs to be pulled low to make sure the input does not float randomly.ame wrote: Why would you do that? What you want is a floating input that can be driven high or low by the external device. Pull-ups or -downs are not necessary.