hid-remapper icon indicating copy to clipboard operation
hid-remapper copied to clipboard

A custom board with LED indicator connected to GPIO

Open xuhdev opened this issue 10 months ago • 3 comments

The idea is to modify v4 (or even retrofit v1-v3) and connect some GPIOs to LED indicators of different colors. In this way, users can use LED indicators to, for example, confirm which layer they are in. The indicators can be visible with a transparent material when 3d printing the enclosures.

What do you think?

xuhdev avatar Mar 01 '25 06:03 xuhdev

@jfedor2 I created a modified version of v3 at https://github.com/xuhdev/hid-remapper/tree/led/custom-boards/v3/kicad . The only things I added are the LED and the resistor next to it (connected to GPIO 18). I also moved the track left to the LED a bit further to the left. Also modified the version number slightly to distinguish from the previous version.

I've sent it to production today and will wait and see if it works.

Let me know what you think! It's my first time working with a PCB so please don't put too much trust in my judgment 😄

xuhdev avatar Mar 02 '25 04:03 xuhdev

I've received the board and it works well. However, I still have to add GPIO 18 to valid pins:

diff --git a/firmware/src/boards/feather_host.h b/firmware/src/boards/feather_host.h
index 1d1b871d221f..2a45222403fd 100644
--- a/firmware/src/boards/feather_host.h
+++ b/firmware/src/boards/feather_host.h
@@ -8,7 +8,7 @@
 
 #define FEATHER_HOST_BOARD
 
-#define GPIO_VALID_PINS_BASE 0b00111111000000001101111111111111
+#define GPIO_VALID_PINS_BASE 0b00111111000001001101111111111111
 
 // On some samples, the xosc can take longer to stabilize than is usual
 #ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER

It seems like this won't work with the feather board, which uses the pin of GPIO 18 for USB power.

I can change the LED to connect to GPIO 19. This is a convenient pin layout-wise, but is also disabled in the firmware. Would you mind enabling GPIO 19 in the long term for feather_host? It doesn't seems like it would affect the feather board. If so, I can make changes to the PCB and order another batch to test out.

xuhdev avatar Mar 11 '25 01:03 xuhdev

I opened #223 to keep track of the progress. Could you reply to the previous message? I can proceed further if you are OK with the change :)

xuhdev avatar Mar 12 '25 20:03 xuhdev