I meant "smallest/lightest" as in a little board that will do what I need it to do. Arduino size would be fine. Slightly larger or smaller would be fine.
Waveshare RP2040-Zero or equivalent, AVR-based Digispark clone, or depending on the precise number of inputs you need an Arduino Nano or larger.
If you have two RP2040 boards you can use one as a Picoprobe, which can handle both loading and debugging. Otherwise there's a button that boots the RP2040 chip looking like a disc drive, and you just get your host OS to copy the firmware file onto it.
Most Arduinos (except possibly the Nano) have a USB serial interface and preprogrammed loader firmware. However you have to jump through hoops to get a debugging interface.
Beware of the "Blue Pill" which is normally shipped without a bootloader, so you need either an ST-Link adapter or something else that implements the SWD 3-wire bus (e.g. a Picoprobe, but I've not tried this combination). Also beware that even though it might appear to be good value, there's a vast number of elderly "Blue Pill" boards with a bad resistor in the USB circuit, meaning that you've got to start messing around with a soldering iron before you have any real chance of programming it over USB.
For my money, the Pico+Picoprobe combination takes some beating. But I do have reservations about the RP2040 chip itself, since its USP (apart from price) is its PIO subsystems... which are great provided that you have a use for them (in the same way that the low-level processing hardware on a BeagleBone was great if you had a use for them) but for the vast majority of people will turn out to be a "solution looking for a problem" which they don't have.
MarkMLl