Axonal flip-flops and oscillators