 for the circuit python parsec today I want to show you how you can use a super nintendo controller as a input in circuit python now this uses the keypad library and the keypad library can deal with shift registers as well as matrices and other input methods these super nintendo controllers and clones like the one that we sell in the store use a shift register so I'm using the shift register side of the keypad code and I have it set up so that it just reads each of the different keys on the keypads when I press them the d-pad here the select and start button and even the shoulder buttons and depending on which one I press I get a different display here of neopixels so the way this works is pretty straightforward I've set up neopixel also I've imported the library for keypad that's the the main thing here I've got a little list of names here I've set up the keypad object right here so this is a shift register its name is shift K and it is keypad shift register keys then we set up the pins for the clock the latch a value to latch data pin the key count how many are on here and the value when pressed is set to false so that tells us which direction this is going to go when we press something then in the main loop of the code all I do is say the event is shift K events get so it checks for any events that are happening on the device there if something gets pressed then I'm running this little pixel code here and printing things out and when something is pressed it returns the key number event dot key number and that's what I can pass to my little function that I have here for defining pixel patterns and so it's really straightforward very easy to use you could use this to turn these into USB key presses or for pure micro controller type of projects here without a computer all and so that is how you can use a shift register Super Nintendo controller as input in circuit Python that is your circuit Python parsec