Generic API for controlling boards with programmable IO pins