There are times when the circuit can be at fault.
Try a simple working circuit with know inputs.
I connected the 3.3V to A0 for a simple test.
Use a multimeter for troubleshooting hardware and to verify signal levels.
I commented on the use of delay() before…
Try a simple frameCount()
timer like this:
You can also make a timer with millis()
; there are many examples of this on the forum.
You can slow down frameRate()
for testing but this will also slow the animation!
:)