Having successfully uploaded the Blink code to the CH32V203, the next task is to try the HID button demo.
The circuit I’m using has two buttons, connected to A2 and A3 of the CH32V203.
The code for this can be viewed on my GitHub page. Right now I’m getting the chip to send a number 2 or a number 3 to the keyboard buffer. I’ll change that to the keyboard codes for CTRL+C and CTRL +V later on.
The circuit is mounted in to the case, with the two buttons fitted to the inner support.
The pusher and outer shell are assembled. There are holes for screws in the bottom, but for now the push-fit is enough.
There will be a couple of adjustments for the production version. I’ll need to move the hole in the shell up a bit to match exactly where the USB C socket is. I’ll also try widening the pusher by 1mm to reduce wiggle.
The last thing will be to gut some vinyl stickers for the top. I have these already from the BeetleBoard version of this button I made before.



















