After some more playing around I think I misunderstood the AC part.
I don't think it requires AC but rather 'alternating' pulses. When wiring up the counter directly to pins A0 & A1 the following code works.
Can you see any issues with this? It seems to work Ok, but I'm worrying I'm still misunderstanding something.
var on = false;
setInterval(function() {
on = !on;
digitalWrite(A0, !on);
digitalWrite(A1, on);
}, 50);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
After some more playing around I think I misunderstood the AC part.
I don't think it requires AC but rather 'alternating' pulses. When wiring up the counter directly to pins A0 & A1 the following code works.
Can you see any issues with this? It seems to work Ok, but I'm worrying I'm still misunderstanding something.