source/py_gpio.c
static PyObject *py_event_detected(PyObject *self, PyObject *args)
{
  unsigned int gpio;
  int channel;

  if (!PyArg_ParseTuple(args, "i", &channel))
    return NULL;

	if (get_gpio_number(channel, &gpio))
    return NULL;

  if (event_detected(gpio))
    Py_RETURN_TRUE;
  else
    Py_RETURN_FALSE;
}
// python function value = event_detected(channel)
python function value = event_detected(channel)
python function value = event_detected ( channel )
static PyObject *py_event_detected(PyObject *self, PyObject *args)
{
  unsigned int gpio;
  int channel;
  if (!PyArg_ParseTuple(args, "i", &channel))
    return NULL;
	if (get_gpio_number(channel, &gpio))
    return NULL;
  if (event_detected(gpio))
    Py_RETURN_TRUE;
  else
    Py_RETURN_FALSE;
}
static PyObject * py_event_detected ( PyObject * self , PyObject * args ) { unsigned int gpio ; int channel ; if ( ! PyArg_ParseTuple ( args , " " , & channel ) ) return NULL ; if ( get_gpio_number ( channel , & gpio ) ) return NULL ; if ( event_detected ( gpio ) ) Py_RETURN_TRUE ; else Py_RETURN_FALSE ; }
python function value = event_detected(channel)
python function value = event_detected ( channel )