Making an Led blink when a new event is published

I moved a post to an existing topic: Using Spark.publish

Considering the fact that this is essentially the same question, I see no need in having two topics for it.