When i upload the button code with de Arduino Ide
Its working correct.
But when i upload that with Xod IT works the other way around .
Output is on when button unpressed and off when button is pressed.
What is going wrong?
The input is connected well.
And i used the example from Xod.
The scheme you use pulls the button down to ground and XOD expects a pull up to Vcc. That’s the difference leading to the inversion. Look carefully: what the signal will be when the button is released? It will go to ground through the resistor on your scheme:
And it goes to 5V in the scheme recommended in the tutorial: