Close

Center Button Test

A project log for SUPEROLED8

Development board for ATmega32U4 complete with 128x64 OLED and 5 way navigation button.

mobilewillMobileWill 05/30/2016 at 02:300 Comments

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