Why would you need braking?
Nota: with Hbridge, the braking is only dynamic braking, not static braking.
When coils are shorten, the DC motor brakes under magnetic effects.
Warning, in this case, you have to dissipate more energy (heat)...
Gathering the Arduino codes, describing them, pointing out pro and cons is a lot of work!...
Which one is the best?
- the quickiest?
- the one with more functionnalities?
- the simpliest? (probably the code I posted)
?...