Posts

Game Controller Project

Image
Below is my sketch for how I want my controller box to look like as of now. A cool idea that I had was to make buttons out of some blank plastic dice that I have left over from a board game kit. I could paint these dice to customize them for my controller. It shouldn't be too hard making them into buttons. The game that I am making my controller for is Jump King. Jump King is a really difficult game that is all about jumping up to the top of the world. To control the game with my controller I am going to do one button for left, one for right, and one button for jumping. Schematic: Code: { #include <Keyboard.h> #include <Adafruit_CircuitPlayground.h> #include <Adafruit_Circuit_Playground.h> const int debounce = 100; const int threshold = 500; void setup()     { CircuitPlayground.begin(); pinMode(CPlay_SLIDESWITCHPIN, INPUT_PULLUP); pinMode(CPLAY_LEFTBUTTON, INPUT_PULLDOWN); pinMode(CPLAY_RIGHTBUTTON, INPUT_PULLDOWN); Keyboard.begin();     }...