Sketch for creating an 8 led POV birthday present
The leds are common anode wired meaning their anodes (positive terminal) are powered by +5V and their cathodes (negative) are pulled low by arduino pins
The resistor is optional. Suggested value 22R
The thing scans backward because a bike wheel turns CCW.