This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create action from switch attached to GPIO
#1
How do I create an action from a switch attached to a GPIO 

I have created the switch under GPIO as an input, pull down

the momentary contact switches are connected between a GPIO and ground. I have two. 

One I eventually want to use to generate a MOB alarm and create a waypoint in OCPN.. 

The other I want to use to cancel alarms by clearing all messages and setting another GPIO to low. 

Let's say I have a temperature sensor that triggers an alarm above a certain temperature. I have actions configured to display a message and set a GPIO output high which operates a relay that lights an illuminated push button switch. 

The idea is that you press the illuminated button to clear the alarm from the display and turn off the light. 

How do I set up an action that detects that the push button has been pushed? 

Chris
Reply


Messages In This Thread
Create action from switch attached to GPIO - by Littlechay - 2017-05-20, 07:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)