How to toggle led

is there a way to do it without buttonpushcounter