Jump to content

Arduino or Zero Delay Encoder for 3-way switches?


durka-durka

Recommended Posts

20 hours ago, No1sonuk said:

Use a "virtual button" for the centre position.
Read the two inputs in one code block and set the 3 output "buttons" appropriately:

Input_A = off, Input_B = off (Centre) gives  button 12 = off, button 13 = on, button 14 = off

Input_A = on, Input_B = off (Up) gives  button 12 = on, button 13 = off, button 14 = off

Input_A = off, Input_B = on (Down) gives  button 12 = off, button 13 = off, button 14 = on

I showed a way to do this here:

 

Once I worked through it line-by-line and tried to understand it, it worked beautifully!  Thank you!  This has been a few weeks of frustraition.  I'm almost tempted to make another panel now.  Does that make me a masochist?  lol

492nd Squadron CO (F-15E): JTF-111 -  Discord Link

Link to comment
Share on other sites

  • 5 months later...

Greetings,

If you want to learn about DCS-BIOS and panel building, look up the Open Hornet Project, The Warthog Project (Youtube) and join the discord channels for OH and DCSFlightpanels..... lots!!! of information that will help you on your way..... Regards, B

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...