Oops, sorry, just noticed the delay(500).
Scratch that.
Check your power supply and decoupling.
Also, please use the auto format tool in the IDE before posting code.
Oops, sorry, just noticed the delay(500).
Scratch that.
Check your power supply and decoupling.
Also, please use the auto format tool in the IDE before posting code.