metro mini v2 + featherwing oled buttons

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
idarlund
 
Posts: 46
Joined: Fri Sep 16, 2022 4:57 pm

metro mini v2 + featherwing oled buttons

Post by idarlund »

Hi,

I've connected a Metro Mini v2 (https://www.adafruit.com/product/5597) with a FeatherWing OLED (https://learn.adafruit.com/adafruit-128 ... g/overview) over STEAMMA QT (I2C). According to the example code at https://learn.adafruit.com/adafruit-128 ... duino-code it seems button A, B, and C should be pin 9, 6 and 5;

Code: Select all

// 32u4, M0, M4, nrf52840, esp32-s2 and 328p
#define BUTTON_A  9
#define BUTTON_B  6
#define BUTTON_C  5
The buttons does however not work.

Are the pins wrong or do I have to connect jumper cables from the A,B and C on the FeatherWing to my Metro Mini v2?

-Idar

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: metro mini v2 + featherwing oled buttons

Post by dastels »

The buttons aren't available over I2C, only when directly connected to a Feather (then they are on the indicated pins).

Dave

User avatar
idarlund
 
Posts: 46
Joined: Fri Sep 16, 2022 4:57 pm

Re: metro mini v2 + featherwing oled buttons

Post by idarlund »

Thanks a lot! Connected the jumper cables to some spare pins and defined them. Worked like a charm! <3

User avatar
idarlund
 
Posts: 46
Joined: Fri Sep 16, 2022 4:57 pm

Re: metro mini v2 + featherwing oled buttons

Post by idarlund »

Is it's possible to program the Reset button to be a "button D"?
I guess it could be done by wiering the RST to a pin and program that pin, but how to disable the feature that the Reset button is turning off the OLED display?

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: metro mini v2 + featherwing oled buttons

Post by dastels »

There is a jumper/trace on the underside of the display wing that you can cut to disconnect the reset button from the display's reset line. It's just below the word "OLED" and labelled, logically, "Reset" :) Once cut, you can wire the reset pin on the wing to an input pin and use it like the other buttons.

Dave

User avatar
idarlund
 
Posts: 46
Joined: Fri Sep 16, 2022 4:57 pm

Re: metro mini v2 + featherwing oled buttons

Post by idarlund »

Thanks again! Now I have up (A), enter (B), down (C) and back (R) buttons for my menu :D

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: metro mini v2 + featherwing oled buttons

Post by dastels »

Nice

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”