RapsiS0: use edge detection instead of polling!