I’m planning on building a custom keyboard with 24 keys running of a BlackPill. It’ll have OLED and RGB.

My question: the BlackPill has 3v and 5v pins. Which should I use for what?