Author Topic: Switch down  (Read 847 times)

Spinape

  • Wizard
  • *****
  • Posts: 214
    • View Profile
Switch down
« on: January 20, 2016, 04:21:52 PM »
I've looked through the manual, tried all the combinations, but can't get my saucer switch to work properly. It's responding when the switch goes up. I know most programming languages have key_down, key_press and key_up... Am I missing something obvious here?

Thanks

Rosh

  • P3 Developers
  • *
  • Posts: 667
  • Josh Kugler
    • View Profile
Re: Switch down
« Reply #1 on: January 20, 2016, 04:25:41 PM »
what do you mean it responds when the switch goes up?  What does the log show when it goes down and then up, there has to be two events as it changes state.

Spinape

  • Wizard
  • *****
  • Posts: 214
    • View Profile
Re: Switch down
« Reply #2 on: January 20, 2016, 04:29:43 PM »
Well, obviously in a saucer, the switch stays pressed down until the ball is ejected. I have to manually remove the ball, when the switch opens back up, then it reacts. The state is NO in my yaml.

The other intesting thing, it works fine from my keyboard when I use my desktop to fire it

Spinape

  • Wizard
  • *****
  • Posts: 214
    • View Profile
Re: Switch down
« Reply #3 on: January 20, 2016, 04:30:27 PM »
I've also never used the log, I just rely on print statements

Spinape

  • Wizard
  • *****
  • Posts: 214
    • View Profile
Re: Switch down
« Reply #4 on: January 20, 2016, 04:33:08 PM »
Wired to the wrong lugs! Lol. My bad