This is the code for a Raspberry Pi project that operates a Lego machine that presses a button in a safepass (bank of america) card and shows a picture of the code in a web page.
See the project here: https://www.facebook.com/alejandro.marcu/videos/vb.629001920/10153450719456921/?type=2&theater