For my project I will be trying to make a game controller for Pokemon Fire Red via an emulator on the computer. My controller idea was to be a wearable watch with face buttons for movement and for the A & B button. However, I will add an accelerometer so it can detect vigorous motion and accept that as an input for the A button. The idea for the watch came from the DS Pokemon games where the main character can wear a watch to use apps on, this will help increase immersion for the player, alongside the motion detection function for the A button, since the A button is used to choose attacks and throw Pokeballs. I have ordered all my supplies and I'm waiting for them to come in, I've begun making my (pseudo) code and schematics, I'm still having issues with making schematics so I might have to refine mine a bit further.
Questions:
What could I do to improve the schematic of the controller?
Is there any way to simplify and streamline the controller even further?
//Libraries
#include <Adafruit_CircuitPlayground.h>
#include <Adafruit_Circuit_Playground.h>
//Variables
//Debounce button press
const int debounce = 100;
//Threshold
const int threshold = 500;
void setup() {
// put your setup code here, to run once:
CircuitPlayground.begin();
//possible bluetooth code
//CPE accelerometer code
//set movement range
//read ranges
//movement = A press
}
void loop() {
// put your main code here, to run repeatedly:
}
}
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.