A late thought. If you need a small cpu board there is the Seeed XIAO which is around 0.7x0.9in and has 11 I/O ports which should be plenty for your application. There is a Fritzing part in both the and smd (if you want to solder it to a pcb) available here
Peter