Probier es mal mit einem interrupt an einer pin.
Vielleicht klappt es doch.