Jump to content



Photo
- - - - -

Pinscape Pico (plunger) - emulate pressed enter key if z axis < -340


  • Please log in to reply
No replies to this topic

#1 zag

zag

    Neophyte

  • Members
  • Pip
  • 3 posts

  • Flag: Switzerland

  • Favorite Pinball: HS

Posted Today, 09:49 AM

Is there a way to emulate a pressed enter key if the value  of the z axis is smaller than for example -340? -340 is the min value the plunger can normaly reach. If I push the plunger in against the front spring I can reach a lower value. I tried the zblaunch feature, but this seems to need DOF. 

 

zblaunch works in the configuration tool, when the plunger is pushed in, but no "enter" key is send to any Windows application.

 

    plunger: {
         source: "pico_adc",   // source sensor type; usually inferred automatically from available sensors
         autoZero: true,       // enable auto-zeroing; only applies to quadrature sensors, ignored otherwise
         autoZeroTime: 5000,   // time in milliseconds for auto-zeroing; plunger must be stationary this long to auto-zero
         powerLaw: 2,          // power-law exponent in brightness-to-distance calculation, only for VCNL4010
         zbLaunch: {
           pushThreshold: -350,
           pulseTime: 70,
       action: {type:"key",key: "enter"},
        },
     },


     pico_adc: {
         gpio: 26,
     },

 


Edited by zag, Today, 11:26 AM.