Interrupts: Converting from Arduino to Particle Photon

Do you mean an example for FSM?

(especially the last post that links to a Hackster article)

If you mean interrupt, then I have given you an example for a toggle and count ISR.