One thing that was missing is the use of the center button. The point of the demo is just to make sure all the hardware works. I added a simple X/Y reset when pressed. So if you loose the box outside the bounds of the display it will reset to the center. It’s a bit hard to hit the center button until I reprint the case for better movement of the joystick. The center button also turns the LED on for a bit, but it is hard to see until I print the joystick cap in a clear filament.
void bCClick(){
boxX = 64-boxXSize;
boxY = 32-boxYSize;
digitalWrite(LEDPIN, HIGH);
delay(200);
digitalWrite(LEDPIN, LOW);
}
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.