def remove_event_detect(channel): ch_info = _channel_to_info(channel, need_gpio=True) event.remove_edge_detect(ch_info.gpio, ch_info.gpio_name)
def remove_event_detect(channel): gpio = _get_gpio_number(channel) event.remove_edge_detect(gpio)