Arudino as python controller

NinjaLordBruce

Reputable
Apr 30, 2014
56
0
4,640
I want to make a simple 2D game in python. Using a 2D array as the board so there isn't much complex moving around. It would be maybe a connect 4 game or mine sweeper something along those lines. I am also buying an arduino with 5 buttons. Would there be a way for me to make that arduino with 4 buttons into a controller that only move you around and use those 4 buttons to control the game in python?
 


1) It's possible, especially if you know how to send serial commands and read them from python (really easy)
2) It's usually easier to start with keyboard inputs and only after it works adding controller support
 

NinjaLordBruce

Reputable
Apr 30, 2014
56
0
4,640


Thanks now I just need to find tutorials on how to read and send the serial commands. I am gonna first make it working with a keyboard inputs, but since it's a school project I need to work on only at school I would just make the controller at home for fun.